go test build

go 测试编译成二进制文件, 然后执行

CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go test -c -o main .
main -test.v -test.bench . -test.run ^$
posted @ 2020-12-16 16:59  白云辉  阅读(415)  评论(0编辑  收藏  举报