在开发过程中可能会遇到这样的情况,有一些包是引入自不同地方的,比如:

golang.org/x/net/htmlnet/htmlgolang.org/x/cryptocrypto

那这是什么原因呢?

引用 Go 官方 Wiki 的说法:

The golang.org/x/... repositories are part of the Go Project but outside the main Go tree.

They are developed under looser compatibility requirements than the Go core. In general, they will support the previous two releases and tip.

golang.org/x/...
golang.org/x/...

热情推荐:

参考: