Skip to content

Instantly share code, notes, and snippets.

@JoshCheek
Created June 29, 2018 13:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JoshCheek/28fdcab95c294f1a9ac75a87ce9219d8 to your computer and use it in GitHub Desktop.
Save JoshCheek/28fdcab95c294f1a9ac75a87ce9219d8 to your computer and use it in GitHub Desktop.
Some notes I took about go, for Pavan
GO LANG NOTES
=============
resources:
https://www.youtube.com/watch?v=XCsL89YtqCs good 5 min vid on binaries/packages/testing
http://golang.org/doc/code.html html version of the above
https://golang.org language
https://golang.org/doc documentation
https://speakerdeck.com/elliott5/write-your-own-go-compiler write your own go compiler
installation:
$ brew install go
$ export GOPATH="$HOME/go"
$ export GOROOT="/usr/local/opt/go/libexec"
$ export PATH="/Users/josh/go/bin:/usr/local/opt/go/libexec/bin:$PATH"
vim integration:
https://github.com/fatih/vim-go.git
if your package is
main - a binary ("go install" in that dir), exe is in $GOPATH/bin
something else - a library ("go install" in that dir), library is in $GOPATH/pkg
if your function starts with an uppercase letter
it will be exported
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment