Difference between golang.org packages and the standard library

https://golang.org/pkg/#subrepo

These packages are part of the Go Project but outside the main Go tree. They are developed under looser compatibility requirements than the Go core.

Use the standard library packages unless you have a strong need to use the /x/ variant and can accept the risk of breaking changes.


Many of the packages in the golang.org/x/ namespace used to live only there, then were later adopted into the standard library. For backward compatibility, the golang.org/x/ version remains.

New apps should always use the standard library version, though, unless there's a compelling reason otherwise (such as using a library that still uses the old version).

Tags:

Go