[求助]flag provided but not defined: -goversion

Ai01 · · 14556 次点击
### 我先去stackoverflow去查过了,没有找到答案。都是一些类似的,但都是来自于docker或者其他项目的。 # go env打印的东西 ```go GOARCH="amd64" GOBIN="" GOEXE="" GOHOSTARCH="amd64" GOHOSTOS="darwin" GOOS="darwin" GOPATH="/Users/baihaihui/go" GORACE="" GOROOT="/usr/local/go" GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64" GCCGO="gccgo" CC="clang" GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/cl/ql8hj8vn1fs68c2yh1b3y9yr0000gn/T/go-build483639360=/tmp/go-build -gno-record-gcc-switches -fno-common" CXX="clang++" CGO_ENABLED="1" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" ``` # 代码 ```go package main import ( "fmt" ) func main() { fmt.Println("Hello, playground") } ``` # 操作 ```go go run hello.go ``` # 结果: ![image.png](https://static.studygolang.com/171102/6c1151cd298b6d36fc176af0c748a507.png)
#6