茶客885
这地址明显有问题呀
qq_方与圆境与心_0
先编译main.go 使用命令go build main.go 生成main.exe
在使用命令 go build -o router_static 得到 router_static
最后使用 go build -o router_static && main.exe
jackanapes
直接运行
go build -o router_static && ./router_static
命令生成
幕布斯5003866
go get 报错?是Windows环境? 是模块设置问题吧
昊天金阙无上至尊玉皇上帝
SET CGO_ENABLED=0SET GOOS=darwin3 SET GOARCH=amd64 go build router_static.go 试试呢?
ErekLee
windows:go build -o router_static.exe && router_static.exe