Go: Difference between revisions

From Redbrick Wiki
Jump to navigation Jump to search
 
Line 5: Line 5:
We have Go installed on our dev server pygmalion but unfortuanlty it doesnt work out of the box. Due to the way go works each user must set up their own GOPATH, thankfully this isnt hard, simply  
We have Go installed on our dev server pygmalion but unfortuanlty it doesnt work out of the box. Due to the way go works each user must set up their own GOPATH, thankfully this isnt hard, simply  
   mkdir ~/go
   mkdir ~/go
   export GOROOT=/usr/lib/go
   export GOROOT=/usr/local/go
   export GOPATH=$HOME/go
   export GOPATH=$HOME/go
And for the sake of convenience we can add that to out normal PATH
And for the sake of convenience we can add that to out normal PATH

Latest revision as of 12:52, 2 February 2016

GO is a great language used by all the cpssd that want to work for google

Using GO on Redbrick

We have Go installed on our dev server pygmalion but unfortuanlty it doesnt work out of the box. Due to the way go works each user must set up their own GOPATH, thankfully this isnt hard, simply

 mkdir ~/go
 export GOROOT=/usr/local/go
 export GOPATH=$HOME/go

And for the sake of convenience we can add that to out normal PATH

 export PATH=$PATH:$GOROOT/bin:$GOPATH/bin

Now your ready to go...


did you see what we did there?


...I'm sorry :(