Go: How does go run file.go work

前端 未结 4 1755
一个人的身影
一个人的身影 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:43

    Unlike in java, where the bytcode is created and interpreted at the execution time, go creates an executable file that is dependent on the machine being used,like in c, c++.

提交回复
热议问题