The Go project's extra packages outside the standard library: crypto, net, sync, oauth2, sys and more
open sourceBSD-3-Clausefree
The golang.org/x repositories are part of the Go project but live outside the main Go tree, under looser compatibility guarantees than the standard library: in general each supports the previous two Go releases and tip, and they depend on nothing outside golang.org/x. Each is its own module, installed with go get: x/crypto (additional cryptography packages), x/net (additional networking packages), x/sync (more concurrency primitives, such as errgroup and singleflight), x/oauth2 (an OAuth 2.0 client), x/sys (system calls and low-level operating system access), x/time (rate limiting), x/text, x/term, x/image, x/mod (tools that work with Go modules), x/tools (vet, cover and the packages behind gopls) and x/exp (experimental packages that may change without warning).
Problems it solves
- run a group of goroutines and stop them all when one fails
- rate limit outgoing requests in a Go service
- get an OAuth 2.0 token from a Go program
- hash passwords with bcrypt or argon2 in Go
Features
- additional cryptography packages (x/crypto)
- additional networking packages (x/net)
- errgroup, singleflight and semaphore (x/sync)
- OAuth 2.0 client (x/oauth2)
- system calls (x/sys)
- rate limiter (x/time/rate)
- experimental packages (x/exp)