Standard Library Essentials - Golang - Complete Documentation by ntxm.org

Files and IO in Go

Read and write files with the os package, work with io.Reader and io.Writer, and use bufio for line reading and fast output.

Working with JSON in Go

Encode Go structs to JSON with struct tags and omitempty, and decode JSON safely with Unmarshal, NewDecoder and unknown field checks.

HTTP Servers and Clients in Go

Build HTTP servers with net/http routing and timeouts, and call APIs with clients that time out, close bodies and check status codes.

Time and Text in Go

Format and parse dates with Go's reference time, handle durations, timezones and the monotonic clock, and work with strings, strconv and strings.Builder.