/go-cli-template

Template project for command line go utilities

Primary LanguageGoApache License 2.0Apache-2.0

go-cli-template

Template for small Go CLI projects.

Get started

Name your project:

set OWNER=owner
set PROJECT=my-project

Create repository and project folder with Github CLI:

gh repo create %PROJECT% --public --template github.com/tischda/go-cli-template
git clone git@github.com:%OWNER%/%PROJECT%.git
cd %PROJECT%
go mod init github.com/%OWNER%/%PROJECT%
go generate template.go

Start coding.

Add modules

go mod tidy
go mod vendor

Release project

make test

git tag -a v1.0.0 -m "First release"
git push origin v1.0.0
make release