How to build after "go get -d"?

huangapple go评论61阅读模式
英文:

How to build after "go get -d"?

问题

我正在使用GOfax.IP,可以通过以下方式下载和构建:

go get github.com/gonicus/gofaxip/...

这个过程没有任何问题。

现在,在编译之前,我想对源代码进行一些小的更改。

我知道可以使用go get -d只下载源代码,但是在完成修改后,我应该如何开始go get的构建/编译部分呢?

谢谢。

英文:

I'm using the GOfax.IP which I can download and build with:

go get github.com/gonicus/gofaxip/...

This works without any problems.

Now I want to make a small change in the source code before compiling.

I know that I can use go get -d to only download the sources, but how would I start the build/compile part of got get after I finished my modifications?

Thanks.

答案1

得分: 3

我自己找到了答案:

 go install ...

这个命令在下载源代码后似乎和go get做的事情完全一样。

英文:

I found the answer myself:

 go install ...

This seems to do exactly the same as go get after downloading the sources.

答案2

得分: 0

go -h 可以帮助你:

> Go 是一个用于管理 Go 源代码的工具。
>
> 用法:
>
> go 命令 [参数]
>
> 命令有:
>
> build 编译包和依赖项
> ...

英文:

go -h can help you:

> Go is a tool for managing Go source code.
>
> Usage:
>
> go command [arguments]
>
> The commands are:
>
> build compile packages and dependencies
> ...

huangapple
  • 本文由 发表于 2017年2月1日 22:06:44
  • 转载请务必保留本文链接:https://go.coder-hub.com/41981767.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定