英文:
Workflow for developing Golang command-line
问题
我正在寻找构建我的第一个Go命令行应用程序。我感觉有些不知所措...在这种情况下,典型的工作流程是什么样的?
我试图编写一些Go代码,然后在vim中运行go build
,然后在另一个终端选项卡中尝试运行程序,但是仅仅使用go build
似乎不能构建并安装程序到我的系统上。我尝试使用-i
选项,第一次可以工作,但之后就无法更新了。
我知道这可能很愚蠢,但希望你能指点我正确的方向。
英文:
I'm looking to build my first Go command-line app. I feel really out of sorts...What would the typical workflow look like when doing something like that?
I'm attempting to write some go and then I run go build
in vim and attempt to run the program with another terminal tab, but go build
alone doesn't seem to build the program and install it on my system. I tried with the -i
and that worked the first time, but didn't update it after.
I'm sure it's silly, but hopefully you can point me in the right direction.
答案1
得分: 1
go build
和 go install
完成了任务!
英文:
go build
&& go install
did the trick!
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论