如何使用Go Get 從GitHub 安裝軟體套件
要使用go get 從GitHub 安裝軟體包,請依照下列步驟操作:
go get <import_path>
範例
例如安裝包github.com/capotej/groupcache- db-experiment,您將執行以下命令命令:go get github.com/capotej/groupcache-db-experiment
命令參考
go get 命令有各種標誌,您可以使用它們來控制其行為:附加說明
例如
這裡是使用的範例go get 使用 -v 標誌來顯示詳細輸出:$ go get -v github.com/capotej/groupcache-db-experiment/... github.com/capotej/groupcache-db-experiment (download) github.com/golang/groupcache (download) github.com/golang/protobuf (download) github.com/capotej/groupcache-db-experiment/api github.com/capotej/groupcache-db-experiment/client github.com/capotej/groupcache-db-experiment/slowdb github.com/golang/groupcache/consistenthash github.com/golang/protobuf/proto github.com/golang/groupcache/lru github.com/capotej/groupcache-db-experiment/dbserver github.com/capotej/groupcache-db-experiment/cli github.com/golang/groupcache/singleflight github.com/golang/groupcache/groupcachepb github.com/golang/groupcache github.com/capotej/groupcache-db-experiment/frontend $
以上是如何使用Go Get安裝GitHub套件?的詳細內容。更多資訊請關注PHP中文網其他相關文章!