Skip to content

go-warrior/cmd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Warrior

Warrior 来自于 Kratos 魔改版,新增注入依赖的wire文件,结合wire命令,可自动生成依赖注入文件,开发人员只需要关心业务开发即可

环境依赖

安装

go install github.com/go-warrior/cmd/warrior/v2@latest

项目创建

# create project's layout
warrior new helloworld

cd helloworld
# pull dependencies
go mod download
# generate proto template
warrior proto add api/helloworld/helloworld.proto
# generate proto code
warrior proto client api/helloworld/helloworld.proto
# generate wire
warrior wire .
# generate usecase template
warrior proto server api/helloworld/helloworld.proto -t internal/app/helloworld/usecase

# run
make run

Warrior升级

warrior upgrade

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published