go 包管理

滴滴滴發表於2024-09-21

//go list -m --versions github.com/gin-gonic/gin 獲取當前包的可用版本有哪些

go list -m --versions github.com/gin-gonic/gin
github.com/gin-gonic/gin v1.1.1 v1.1.2 v1.1.3 v1.1.4 v1.3.0 v1.4.0 v1.5.0 v1.6.0 v1.6.1 v1.6.2 v1.6.3 v1.7.0 v1.7.1 v1.7.2 v1.7.3 v1.7.4 v1.7.5 v1.7.6 v1.7.7 v1.8.0 v1.8.1 v1.8.2 v1.9.0 v1.9.1 v1.10.0

// go 拉取指定版本的包

go get github.com/gin-gonic/gin@v1.9.1

F:\goenv\goproject\src\awesomeProject0921>go get github.com/gin-gonic/gin@v1.9.1
go: downloading github.com/gin-gonic/gin v1.9.1
go: downgraded github.com/gin-gonic/gin v1.10.0 => v1.9.1

相關文章