-
-
Save JoshCheek/28fdcab95c294f1a9ac75a87ce9219d8 to your computer and use it in GitHub Desktop.
Some notes I took about go, for Pavan
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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