Proposals Unofficial Go proposal tracker

Add generic collection packages (experimental)

#80590 · x/exp/collection · medium impact · Accepted ·

Go has few library collection types. Sets are usually written as map[T]bool or map[T]struct{}, ordered maps don't exist, and container/heap is awkward to use. This umbrella proposal adds a family of generic collection packages to golang.org/x/exp, so the community can try them before they move into the standard library.

The new types are:

See individual proposals for more details.

Proposal
#80590 by adonovan
Status
Accepted on Nov 4, 2026
Impact
medium
Area
x/exp/collection