@
jasonix 也是不行,奇怪了,我的系统是 11.1
GOROOT=/Users/user1/go #gosetup
GOPATH=/Users/user1/.go #gosetup
/Users/user1/go/bin/go build -o /private/var/folders/ss/8gmdbns14bgd7fvcz3v18r500000gn/T/___2go_build_main_go -gcflags all=-N -l /Users/user1/Downloads/StudyGo/main.go #gosetup
"/Users/user1/Library/Application Support/JetBrains/Toolbox/apps/Goland-ARM/ch-0/203.6682.164/
GoLand.app/Contents/plugins/go/lib/dlv/mac/dlv" --listen=0.0.0.0:58927 --headless=true --api-version=2 --check-go-version=false --only-same-user=false exec /private/var/folders/ss/8gmdbns14bgd7fvcz3v18r500000gn/T/___2go_build_main_go --
Debugger finished with exit code 137 (interrupted by signal 9: SIGKILL)
代码:
package main
import "fmt"
func main() {
fmt.Println("Hello")
}