Skip to content

Instantly share code, notes, and snippets.

@nickboldt
Last active April 9, 2021 20:03
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 nickboldt/16b2880111b0cc70e1842a512cfe91d4 to your computer and use it in GitHub Desktop.
Save nickboldt/16b2880111b0cc70e1842a512cfe91d4 to your computer and use it in GitHub Desktop.
go cheat sheet

get latest deps into a vendor/ folder:

go mod tidy || true; go get -d -t || true; go mod download || true; go mod vendor || true

go build options:

-mod=readonly == break if go.mod not current w.r.t. vendor folder (online mode)
-mod=vendor == use vendor folder, assume it's correct (offline mode for Brew)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment