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
Открыть в TelegramПосты канала 🇺🇦 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
Открыть в Telegramhttps://www.reddit.com/r/RedditEng/comments/1mbqto6/modernizing_reddits_comment_backend_infrastructure/
Открыть в 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
Открыть в TelegramNice satire article https://www.justfuckingcode.com/ 🙂 Kinda true in many directions 🙂
Открыть в 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.
Открыть в TelegramInteresting approach by Russ for finding bugs by diff code coverage profiles between faing and success exectuon: https://research.swtch.com/diffcover
Открыть в Telegram"Programming Is Like S*x: One mistake and you have to support it for the rest of your life." — Michael Sinz 😭😭😭
Открыть в 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
Открыть в 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!)
Открыть в Telegramit's really sad :( https://github.com/golangci/golangci-lint/issues/5300#issuecomment-2615552467
Открыть в 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: [""]
Открыть в TelegramDont forget to share your feedback about developing with Go ✍️ https://go.dev/blog/survey2024-h2
Открыть в 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
Открыть в 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/
Открыть в 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/
Открыть в Telegram_4chan := make(chan chan chan chan int) 😅😅😅 https://www.dolthub.com/blog/2024-08-23-the-4-chan-go-programmer/
Открыть в Telegram