简体   繁体   中英

Difference between `go get` and `git clone`?

I had a problem with go-modbus in an issue in Github.
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下载并安装导入路径命名的包及其依赖项。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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