Ai
1 Star 0 Fork 0

ryancartoon/sensu-go

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
main.go 343 Bytes
一键复制 编辑 原始数据 按行查看 历史
Simon Plourde 提交于 2018-10-12 22:09 +08:00 . Remove the Error store & type (#2168)
package main
import (
"log"
"os/exec"
"regexp"
)
var libprotoRe = regexp.MustCompile(`^libprotoc 3.6.1\s$`)
func main() {
out, err := exec.Command("protoc", "--version").Output()
if err != nil {
log.Fatal(err)
}
if !libprotoRe.Match(out) {
log.Fatalf("bad protoc version: want %q, got %q", libprotoRe.String(), string(out))
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ryancartoon/sensu-go.git
git@gitee.com:ryancartoon/sensu-go.git
ryancartoon
sensu-go
sensu-go
v5.10.1

搜索帮助