## 开始新项目 - 检查环境 ```shell goctl env check --install --verbose --force ``` - 创建项目,xxx 改为项目名 ```shell mkdir xxx cd xxx go mod init xxx go get -u github.com/zeromicro/go-zero@latest go mod tidy ``` - 创建服务 ```shell mkdir api cd api goctl api new xxx --style go-zero --remote https://gitea.gxxhygroup.com/dark/zero-template cd xxx go mod tidy ``` - 根据 xxx.api 生成代码 ```shell goctl api go -api xxx.api -dir . --style go_zero --remote https://gitea.gxxhygroup.com/dark/zero-template ```