Skip to content

Instantly share code, notes, and snippets.

@germs12
Last active August 29, 2015 14:07
Show Gist options
  • Save germs12/9e471d02aefbba9d7d73 to your computer and use it in GitHub Desktop.
Save germs12/9e471d02aefbba9d7d73 to your computer and use it in GitHub Desktop.
Go Notes
https://golang.org/doc/effective_go.html <--- Good read
http://tour.golang.org/ <--- GREAT Tutorials
https://gobyexample.com/ <--- Real World Examples That Makes Sense
http://golang.org/doc/code.html <--- I read the beginning of this
go get <github url>
go run (like IRB or running ruby filename.rb)
go build (builds the app into a binary)
----------POST INSTALL NOTES-------------
As of go 1.2, a valid GOPATH is required to use the `go get` command:
http://golang.org/doc/code.html#GOPATH
`go vet` and `go doc` are now part of the go.tools sub repo:
http://golang.org/doc/go1.2#go_tools_godoc
To get `go vet` and `go doc` run:
go get code.google.com/p/go.tools/cmd/godoc
go get code.google.com/p/go.tools/cmd/vet
You may wish to add the GOROOT-based install location to your PATH:
export PATH=$PATH:/usr/local/opt/go/libexec/bin
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
zsh completion has been installed to:
/usr/local/share/zsh/site-functions
-----------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment