goinit
Generate initial configuration files for Go.
2021-11-22.16.34.27.mov
Here are generated by this cli tool.
- main.go
- README.md
- LICENSE
- .github/workflows/lint.yml
- .github/workflows/test.yml
- .gitignore
- .golangci.yml
Required
- Go 1.16~
Installation
$ go install github.com/mmmommm/goinit@latest
MacOS
If you want to install on MacOS, you can use Homebrew.
brew install mmmommm/tap/goinit
upgrade
brew upgrade mmmommm/tap/goinit
Usage
$ goinit
Option
$ goinit p ${package_name}
$ goinit p github.com/mmmommm/goinit
This option run go mod init ${package_name}
After run goinit
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}`