A scripts folder with two package names in one directory makes go list ./... fail, and with it go vet, go test and govulncheck. Here is how I list packages with go list -e, filter by path and pass the list through GITHUB_OUTPUT, and why I don't filter on .Error.
Methods on your own types, implicit interfaces, small interfaces like io.Reader, type switches, the nil interface trap and "accept interfaces, return structs", with runnable examples on Go 1.27 and a small io.Writer exercise.
A HeadObject size check followed by a GetObject is a race: the object can be replaced with a huge one in between. Here is how I read S3 objects in Go with io.LimitReader and one extra byte, so the cap holds no matter what the size check said.
Part 2 of the shorty series: Postgres from Go with pgx v5 and sqlc. Type-safe code generated from plain SQL, ON CONFLICT with pgx.ErrNoRows, connection pool settings, a deadlock-free batch transaction and goose migrations embedded in the binary.
Learn AWS IAM by writing real policies: reading a statement line by line, roles and trust policies, assuming a role from the CLI, testing with the policy simulator and trimming access with IAM Access Analyzer.
Our Slack error channel got an alert for every logged error, including the ones that ended as a 404. Here is how I hold Error logs until the request finishes and only post the ones that became a 5xx, using slog and plain net/http.
Everything in Dota 2 patch 7.42a, split into short articles by role: map, items, hard carry, offlane, midlane, hard support and support. 40 heroes changed.