Closed awaiter closed 3 years ago
[root@test-gitlab-runner grafana-wecaht-alert]# go build main.go -o wechat-alert can't load package: named files must be .go files: -o
打包命令的问题: 改为:go build -o wechat-alert main.go 前提go mod 已经下载了依赖 下载命令行: go mod tidy
[root@test-gitlab-runner grafana-wecaht-alert]# go build main.go -o wechat-alert can't load package: named files must be .go files: -o