Cómo hacer referencia a paquetes de terceros en goland

1. Ingrese al directorio actual y ejecutego mod init

PS E:\projects\goland_learning\src\gin_demo> go mod init
go: creating new go.mod: module gin_demo
go: to add module requirements and sums:
        go mod tidy

2. Descargue paquetes de terceros:

PS E:\projects\goland_learning\src\gin_demo> go get -u github.com/gin-gonic/gin
go: downloading github.com/gin-gonic/gin v1.9.1
go: downloading golang.org/x/net v0.10.0
go: downloading github.com/ma

Supongo que te gusta

Origin blog.csdn.net/qq_45662588/article/details/133545983
Recomendado
Clasificación