hello-world-publish-go-mod

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2022 License: MIT Imports: 2 Imported by: 0

README

hello-world-publish-go-mod

Just example of publishing go module Article Semver

Create and publish module

1. Init go.mod

# go mod init github.com/<github_user_name>/<repository_name>
go mod init github.com/asstart/hello-world-publish-go-mod

2. Write some code
3. Push changes to remote
4. Create tag with version
git tag v1.0.0
5. Push tag to remote
git push origin v1.0.0

Use module

1. Download and build
go install github.com/asstart/hello-world-publish-go-mod@1.0.0
2. Run
$GOPATH/bin/hello-world-publish-go-mod

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL