Skip to content

Instantly share code, notes, and snippets.

@akyoto
Created April 22, 2019 08:10
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 akyoto/ecdd93f4dd2c41af05dd8f7d0bf5e7d3 to your computer and use it in GitHub Desktop.
Save akyoto/ecdd93f4dd2c41af05dd8f7d0bf5e7d3 to your computer and use it in GitHub Desktop.
Add go.mod to existing project
export TAG=v0.1.0 go mod init && gb -v && go mod tidy && git add . && git commit -m "Added Go module definition" && git push && git tag $TAG && git push origin $TAG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment