Go Basics: Difference between revisions
Jump to navigation
Jump to search
Line 17: | Line 17: | ||
<pre> | <pre> | ||
godoc | godoc | ||
go build | |||
go install | |||
go run | |||
</pre> | </pre> |
Revision as of 00:52, 6 February 2014
Resources: http://golang.org/
Install and Setup
sudo apt-get install golang
http://golang.org/doc/code.html discusses setting up the GOLANG environment variable and your code repository
mkdir -p $HOME/projects/go/src export GOPATH=$HOME/projects/go (add this to .profile too)
Commands
godoc go build go install go run