Generate initial configuration files for Go.
Here are generated by this cli tool.
- main.go
- main_test.go
- README.md
- LICENSE
- .github/workflows/lint.yml
- .github/workflows/test.yml
- .gitignore
- .golangci.yml
- Go 1.16~
$ go install github.com/mmmommm/goinit@latest
If you want to install on MacOS, you can use Homebrew.
brew install mmmommm/tap/goinit
brew upgrade mmmommm/tap/goinit
Download the binary from here.
$ goinit ${directory_name}
$ goinit example
$ goinit ${directory_name} -m ${package_name}
$ goinit example -m github.com/mmmommm/example
this option run go mod init github.com/mmmommm/example
go run main.go
curl localhost:8080/Go
And then response this sentence.
Hi there, I love Go!
open LICENSE file and rewrite ${your_account_name}
Copyright (c) 2021 ${your_account_name}`