Go: How does go run file.go work

前端 未结 4 1778
一个人的身影
一个人的身影 2021-01-07 19:08

The commands go build and go install compile the files into binaries. Does go run compile or interpret the file? I couldn\'t find expl

4条回答
  •  一个人的身影
    2021-01-07 19:36

    It's more or less the equivalent of running go build X.go -o /tmp/random-tmp-folder/exe && /tmp/random-tmp-folder/exe

提交回复
热议问题