To setup Go for your user account on a lab machine you need to update your .bashrc
file.
-
Open the file by running
gedit ~/.bashrc
in terminal (if you are not in a graphical environment, use a terminal-based editor e.g.nano ~/.bashrc
). -
Add this to the end of the file:
module load go
export GOPATH="$HOME/go"
export PATH="$PATH:$GOPATH/bin"
-
Save the file and exit.
-
Close and re-open any terminal windows. If you are working over
ssh
you can use the commandsource ~/.bashrc
. -
Verify your installation with the command
go version
. The version will be1.17.13
.
IntelliJ is installed on thr lab machines. To use it, open the search bar and type: "ultimate" and it will come up
It's just been installed so we have had little time for testing. It should "find" go automatically and configure itself. If you need to specify the above version, select:
- File->Settings->Languages & Frameworks->Go->GOROOT
and edit appropriately.
https://uob.sharepoint.com/sites/itservices/SitePages/fits-engineering-linux-x2go.aspx