我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

如何通过使用go get获取指定版本的软件包(标签)?

How to get the specified version(tag) of package by using go get?

go get github.com/owner/repo

In the above command, how to specify version or tag of the package.

Volker's correct, but here's a way to use a particular version in your project:

go get github.com/sirupsen/logrus
cd $GOPATH/src/github.com/sirupsen/logrus
git checkout v0.9.0
cd $GOPATH/src/github.com/YOU/PROJECT
govendor add github.com/sirupsen/logrus  # or similar

近期文章

  • 进入wait4功能
  • 输入任何数值并按go1.5.2排序
  • GoLang:将file://的标头设置为null到http://的请求无效
  • 通过Golang执行Shell脚本后找回错误
  • 在Go中构建MRSS Feed
  • 鱼壳中有多个GOPATH
  • 测试功能获得100%覆盖率
  • 在Go中传递响应正文(response.Body)的有效方法是什么?
  • 在Golang中解组json数组
  • PostgreSQL查询中具有模式匹配语法的参数
  • Linux抓icmp包分析错误?
  • 请问以下爬虫程序错在哪里,爬取到的数据存不进MQSQL数据库
  • 运行多文件go程序
  • 比较GO中的地图值
  • 执行:反射:使用很少的输入参数进行调用
  • 范围内的[] interfaces {},并获得每种类型的通道字段
  • 收据地址不会显示在golang smtp客户端发送的电子邮件中
  • 如何使用Go lang从mysql获取多列
  • 如何不通过Xcode将* .app上传到Appstore?
  • 进入嵌入式自定义界面

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华