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 TelegramPosts of πΊπ¦ Go for two :)
β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 Telegramit's really sad :( https://github.com/golangci/golangci-lint/issues/5300#issuecomment-2615552467
Open in TelegramTIL: strings.Split returns [""] if s does not contain sep and sep is not empty π package main import ( "fmt" "strings" ) func main() { fmt.Printf("%q\n", strings.Split("", ",")) } Split returns a slice of length 1 whose only element is s: [""]
Open in TelegramDont forget to share your feedback about developing with Go βοΈ https://go.dev/blog/survey2024-h2
Open in TelegramProviding context to cancellations in Go 1.20 with the new context WithCause API https://josephwoodward.co.uk/2023/01/context-cancellation-cause-with-cancel-cause and proposal https://github.com/golang/go/issues/51365
Open in TelegramSome pitfalls about generating Kubernetes Custom Resources with `controller-gen` over the years, and how to do more rigid validation and defaulting with it: https://ahmet.im/blog/crd-generation-pitfalls/
Open in TelegramOld but still worth to read about why one shouldn;t defer Close() on writable files: https://www.joeshaw.org/dont-defer-close-on-writable-files/
Open in Telegram_4chan := make(chan chan chan chan int) π π π https://www.dolthub.com/blog/2024-08-23-the-4-chan-go-programmer/
Open in Telegram