this script will create the following tree:
.
├── cmd
│ └── main.go
├── config
│ └── config.go
├── config.toml
├── Dockerfile
├── go.mod
├── internal
├── README.md
├── test
│ └── suite_test.go
└── utils
- you need to provide --project-name myGoProject (or -p for short) + --go-mod github.com/example/myGoProject (or -g for short)
./goproject-gen.sh -p myGoProject -g github.com/example/myGoProject
- if you are using this tool inside a initilized git repo please pass --no-git | -ng to skip git init.
- you also can provide a -c to open the project after creation. :)