-
-
Save azhuox/e00e89d9651de4825632f57d09a5aab9 to your computer and use it in GitHub Desktop.
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
cd path/to/libs/liba | |
go mod init github.com/azhuox/blogs/golang/go_modules/example/libs/liba | |
go: creating new go.mod: module github.com/azhuox/blogs/golang/go_modules/example/libs/liba | |
go build | |
go: finding golang.org/x/net/context latest | |
go: finding golang.org/x/net latest | |
# Commit changes | |
# | |
git add ./go.mod ./go.sum | |
git commit ./go.mod ./go.sum -q -m "Convert liba to a module" && git push origin master -q | |
# Release the latest version (v1.1.0): | |
# | |
git tag golang/go_modules/example/libs/liba/v1.1.0 && git push -q origin master golang/go_modules/example/libs/liba/v1.1.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment