转到:如何运行file.go工作 [英] Go: How does go run file.go work

查看:70
本文介绍了转到:如何运行file.go工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

命令 go build go install 将文件编译为二进制文件。 是否运行编译或解释文件?我在网上找不到解释,可能错过了它。欣赏指针。谢谢!

The commands go build and go install compile the files into binaries. Does go run compile or interpret the file? I couldn't find explanations online and may have missed it. Appreciate pointers. Thanks!

推荐答案

它或多或少相当于运行 go build X.go -o / tmp / random-tmp-folder / exe&& / tmp / random-tmp-folder / exe

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

这篇关于转到:如何运行file.go工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆