1 Star 0 Fork 0

民禧农机/tools

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
bm.go 448 Bytes
一键复制 编辑 原始数据 按行查看 历史
surongzhen 提交于 2020-09-11 11:27 +08:00 . fix
package main
import (
"os/exec"
)
const (
_getBMGen = "go get -u github.com/go-kratos/kratos/tool/protobuf/protoc-gen-bm"
_bmProtoc = "protoc --proto_path=%s --proto_path=%s --proto_path=%s --bm_out=:."
)
func installBMGen() error {
if _, err := exec.LookPath("protoc-gen-bm"); err != nil {
if err := goget(_getBMGen); err != nil {
return err
}
}
return nil
}
func genBM(files []string) error {
return generate(_bmProtoc, files)
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/surongzhen1213/tools.git
git@gitee.com:surongzhen1213/tools.git
surongzhen1213
tools
tools
v1.0.9

搜索帮助