golang 的内部导包路径为什么都是 github?

https://github.com/prometheus/prometheus

因为不熟悉 golang,所以看代码的时候,有一些疑问:

图片.png

storage/remote/read_handler.gogithub.com/prometheus/prometheus/util/gate
util/gate

编译的时候,难道还要访问 github 吗?


还有一个子问题,使用 vscode 想看某个东西源码的时候,会使用鼠标左键,但是看 golang 的时候,按了鼠标左键不仅仅会在 vscode 中跳转到源码位置,vscode 还会帮我看到浏览器中的 doc,这太愚蠢了,怎么关闭跳转到浏览器这个功能?

github.com/prometheus/prometheus/util/gatehttps://pkg.go.dev/github.com/prometheus/prometheus/util/gate?utm_source=gopls

我觉得这个功能太愚蠢了,如何关闭?