简体   繁体   English

`go get`和`git clone`之间的区别?

[英]Difference between `go get` and `git clone`?

I had a problem with go-modbus in an issue in Github. 在Github的一个问题中我遇到了go-modbus问题
Author suggested me to use: 作者建议我使用:

$ go get github.com/goburrow/modbus  

instead of 代替

$ git clone https://github.com/goburrow/modbus.git

What is the difference between that two commands? 这两个命令有什么区别?

git clone命令将repo克隆到新创建的目录中,然后go get下载并安装导入路径命名的包及其依赖项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM