An easy to use, easy to maintenance template.
This template layout reference: https://go.dev/doc/modules/layout
// install
go install golang.org/x/tools/cmd/gonew@latest
gonew github.com/liushuangls/go-server-template your.domain/myprog
// run
cd myprog
cp configs/test.yaml configs/local.yaml
make install
make generate
make run
- wire - injects dependencies
- ent - database orm
- gin - router
- viper - config manager
- and so on...
- jwt
- ...