golang
golang
Setup
In your .profile
(or .bashrc
, .zshrc
, etc):
Be sure to set GOROOT
to /usr/pkg/gon
where n is the version of golang that you
wish to use. Then add $GOROOT/bin
to your PATH
variable.
e.g., for go 1.20.4, add the following to the end of your .zshrc
:
GOROOT=/usr/pkg/go120 PATH=$GOROOT/bin:$PATH
Resources
- Documentation – official documentation
- https://github.com/golang/go – official git repository
- https://go.dev/ – official website
- Go by Examaple – hands-on introduction to go
- A Tour of Go – interactive tutorial
golang.txt · Last modified: 2024/09/04 07:08 by hc9