当前位置:网站首页>Golang idea configures the agent to improve the speed of packages downloaded by go get

Golang idea configures the agent to improve the speed of packages downloaded by go get

2022-06-12 05:32:00 cbdgz

  • First step : open Golang IDEA Setting interface of , Open options Go Modules Options

    [ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-GJWJkumO-1645715756597)(https://s3-us-west-2.amazonaws.com/secure.notion-static.com/e18ef347-913b-4817-98b4-3ed5e7631168/Untitled.png)]

  • The second step : stay Environment Enter the following configuration settings in Golang IDEA Of GORPOXY and GOPRIVATE environment variable

    GOPROXY=https://goproxy.io,direct;GOPRIVATE=git.mycompany.com,github.com/my/private
    

    [ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-MNqLHDEV-1645715756603)(https://s3-us-west-2.amazonaws.com/secure.notion-static.com/9021925f-bcd5-467f-bd5b-bddd4e4a08f4/Untitled.png)]

    Setup complete Apply Then you can quickly Golang IDEA Download go The third-party package

原网站

版权声明
本文为[cbdgz]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/03/202203010616200171.html