Go: Difference between revisions

From Redbrick Wiki
Jump to navigation Jump to search
(Created page with "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 doe...")
 
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 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
   export PATH=$PATH:$GOPATH/bin
   export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
Now your ready to go...
Now your ready to go...



Revision as of 16:41, 1 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/lib/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 :(