Libraries#
Go’s standard library is large and stable; reach for it before pulling in a dependency.
Standard Library#
fmt, formatted I/Oio/bufio, streams and buffered readers/writersos, files, processes, environmentnet/http, HTTP client and serverencoding/json, JSON marshallingencoding/xml, XMLstrings/bytes– text and byte-slice helpersstrconv, string ↔ number conversiontime, timestamps, durations, timerscontext, cancellation and deadlinessync/sync/atomic, mutexes, wait groups, atomicslog/log/slog, logging (slog is the structured logger)errors,Is,As,Jointesting, the test framework
Module Tooling#
$ go mod init example.com/app
$ go get github.com/some/dep@v1.2.3
$ go mod tidy
$ go list -m all