Go 1.27 Generic Methods: Type Parameters and Interface Limits
Use Go 1.27 generic methods, distinguish receiver and method type parameters, and design around the interface-method restriction.
Go technical articles
Clear explanations of the details that shape real programs.
Explore Go errors, interfaces, slices, concurrency, modules, and standard-library contracts that affect production code.
8 articles
Use Go 1.27 generic methods, distinguish receiver and method type parameters, and design around the interface-method restriction.
Implement Go 1.23 iter.Seq correctly, honor early loop exit, convert push iterators with iter.Pull, and manage cleanup.
Read go.mod requirements through minimal version selection, distinguish go.sum from a lockfile, and inspect the selected build list.
Use Go happens-before guarantees for visibility without assuming goroutine scheduling, lock fairness, or race-detector completeness.
Predict Go slice aliasing with length and capacity, limit append with full slice expressions, and copy when storage must be independent.
Propagate Go context cancellation down call trees, release derived-context resources, preserve causes, and detach work safely.
Understand why a Go interface containing a nil pointer is not nil, how assertions behave, and how to prevent non-nil error surprises.
Inspect wrapped and joined Go errors by identity or type, preserve context with %w, and make deliberate error API commitments.