# Go 1.28 Proposal: New Generic Collection Types for the Standard Library

Original title: Golang proposal: container/: generic collection types

> Hacker News story 49127031 · language: en · submitted 2026-07-31
> Web version: https://zeli.app/story/49127031
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 176 · by [jabits](<https://news.ycombinator.com/user?id=jabits>) · 💬 175
[original](<https://github.com/golang/go/issues/80590>) · [HN discussion](<https://news.ycombinator.com/item?id=49127031>)

## Summary

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.

## Key quote

> We expect it to become the standard set in most new Go APIs.

## HN discussion (175 comments)

### [DarkNova6](<https://news.ycombinator.com/item?id=49129651>)

> Step by step, Go is now learning the hard lessons every other language has learned over the last 20 years. The fact that despite their best efforts, their propositions look like everone else is a surprisingly refreshing affirmation of status quo.

### [nasretdinov](<https://news.ycombinator.com/item?id=49128285>)

> Well, better late than never. Stuff like sets or a typed heap is long overdue. Maybe they'll even add iterator API for database/sql results this decade too (something like my pull request for sqlx https://github.com/jmoiron/sqlx/pull/990 but maybe more polished)

### [kamma4434](<https://news.ycombinator.com/item?id=49131350>)

> Welcome to Java, where Collections are the bread and butter of every programmer since 1998.
>
> While you are at it, I humbly suggest to add composable streams too, that we had in 2014, and that make working with collections way more pleasant.
>
> (Jokes aside, in Java it is very nice that you can start with a generic ArrayList and turn it into a linked list with one single keyword change and no code needs changing, or that you can turn any collection into a synchtonized or readonly doppelganger with one line of code. Collections are nice and I miss them in Golang)

### [valcron1000](<https://news.ycombinator.com/item?id=49129955>)

> 22 years late, but better late than never.

### [jiehong](<https://news.ycombinator.com/item?id=49128592>)

> Well, finally!
>
> I wish they wouldn’t mix mutation methods in there, but ok.

### [athorax](<https://news.ycombinator.com/item?id=49128026>)

> On one hand I'm glad to see this being added, but its becoming obvious building generics into the language as-is just isn't a good fit. Hopefully Go v2 can solve this at a more foundational level while still allowing interop or easy porting form current go code.

### [alfiedotwtf](<https://news.ycombinator.com/item?id=49131356>)

> No reference to Canadian Aboriginal characters in the comments :(

### [troupo](<https://news.ycombinator.com/item?id=49127617>)

> Go is rediscovering Guy Steele's Growing a Language from first principles, at a much slower pace: https://youtu.be/_ahvzDzKdB0?is=qZdfiT3792XyHxSJ

---

## Cite

- Page: https://zeli.app/story/49127031
- Date: 2026-07-31
- Source: github.com (https://github.com/golang/go/issues/80590)
- Hacker News: https://news.ycombinator.com/item?id=49127031

## Other languages

- zh: https://zeli.app/zh/story/49127031 · markdown: https://zeli.app/zh/story/49127031.md
- ja: https://zeli.app/ja/story/49127031 · markdown: https://zeli.app/ja/story/49127031.md
- ko: https://zeli.app/ko/story/49127031 · markdown: https://zeli.app/ko/story/49127031.md
- de: https://zeli.app/de/story/49127031 · markdown: https://zeli.app/de/story/49127031.md
- es: https://zeli.app/es/story/49127031 · markdown: https://zeli.app/es/story/49127031.md
