Go: Difference between revisions

Jump to navigation Jump to search
40 bytes added ,  1 February 2016
(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...


Navigation menu