kratos-tpl
my go kratos Project Template base on offical kratos layout
Features
- use go-task rather than make
- use buf for proto build
- built in zap with lumbjack
- use goreleaser to cross build
goreleaser
go install github.com/goreleaser/goreleaser@latest
Task
go install github.com/go-task/task/v3/cmd/task@latest
for Buf installation, please refer document
usage
run the command:
kratos new <your App Name> -r https://github.com/tpl-x/kratos.git
or
kratos new <your App Name> -r git@github.com:tpl-x/kratos.git
to create your first Application