Go 1.28 Proposal: New Generic Collection Types for the Standard Library
Golang proposal: container/: generic collection types
The Go Collections working group presents a proposal to add generic collection types to the standard library for Go 1.28. We aim to introduce hash-based maps and sets, ordered maps, and a simplified heap API while maintaining Go's principles of pragmatism and simplicity. These additions address the current lack of built-in data structures like sets and ordered maps, leveraging generics and iterators to provide ergonomic, high-performance tools for developers.
We expect it to become the standard set in most new Go APIs.