New package with a generic set type has been accepted :) https://github.com/golang/go/issues/69230 package set // import "golang.org/x/exp/collection/set" Package set defines Set, an experimental prototype for what may become the canonical representation of a set recommended for use in public APIs. A Set[E] is transparently represented as a map[E]struct{}, and so it may be used as the operand of a range loop. Example: var x, y, z set.Set[int] x = set.Of(1, 2, 3) // "{1, 2, 3}" y = set.Of(3, 4, 5) // "{3, 4, 5"} z = x.Intersection(y) // "{3}" for elem := range z { println(elem) // "3" } // more examples https://github.com/golang/go/issues/69230#issuecomment-6040903375
Open in Telegram🇺🇦 Go for two :)
Telegram channel about tricks and engineering practices in the Go programming language over a cup of coffee ☕️. author: @a_soldatenko personal blog: https://asoldatenko.org #golang #go #kubernetes #debugging
Latest posts
„Interesting times“ What should we do with CLs generated by AI? https://groups.google.com/g/golang-dev/c/4Li4Ovd_ehE/m/UU87HnL5DgAJ?pli=1
Open in Telegramhttps://www.reddit.com/r/RedditEng/comments/1mbqto6/modernizing_reddits_comment_backend_infrastructure/
Open in TelegramHey k8s/containers users! Go 1.25 not yet released but will be container aware of GOMAXPROCS https://tip.golang.org/doc/go1.25#container-aware-gomaxprocs
Open in TelegramNice satire article https://www.justfuckingcode.com/ 🙂 Kinda true in many directions 🙂
Open in TelegramClassics https://status.redhat.com/ > Quay.io has been moved to read-only mode while we work to implement a fix. During this time Pulls will continue to work, however, Pushes will be disabled until a fix is implemented. There is currently no timeline for Push restoration. > The issue has been identified. A primary key in the database has reached maximum value. We are currently working on validating a fix.
Open in TelegramInteresting approach by Russ for finding bugs by diff code coverage profiles between faing and success exectuon: https://research.swtch.com/diffcover
Open in Telegram"Programming Is Like S*x: One mistake and you have to support it for the rest of your life." — Michael Sinz 😭😭😭
Open in TelegramFYI: https://semgrep.dev/blog/2025/popular-github-action-tj-actionschanged-files-is-compromised/ https://www.stepsecurity.io/blog/harden-runner-detection-tj-actions-changed-files-action-is-compromised
Open in TelegramAfter releasing go1.24, we can manage tools as dependencies! Here is very good step by step article about how to do it https://www.alexedwards.net/blog/how-to-manage-tool-dependencies-in-go-1.24-plus Also it includes example how to add tools to seperate go.mod file (TIL!)
Open in TelegramConnections
Similar channels
Naol.Builds@naol_buildsTechnologies1.1K
Лёха ведет дневник@alexs_journalTechnologies1.1K
Прогноз Погоды | OSINT, фактчек и все, все, все@pavelbannikovTechnologies1.09K
Сеньор Юникорн@senior_unicornTechnologies1.09K
AISecure@paranoaisecureTechnologies1.09K
Алексей Южаков | Роботы. Бизнес. Смарт-инфраструктура@alexeyyuzhakovTechnologies1.1K
Индустрия 4.0.@the4industryTechnologies1.09K
ФПИ@fpi_russiaTechnologies1.09K