Community chat: https://t.me/hamster_kombat_chat_2
Twitter: x.com/hamster_kombat
YouTube: https://www.youtube.com/@HamsterKombat_Official
Bot: https://t.me/hamster_kombat_bot
Game: https://t.me/hamster_kombat_bot/
Last updated 2 weeks, 1 day ago
Your easy, fun crypto trading app for buying and trading any crypto on the market
Last updated 1 week, 1 day ago
Turn your endless taps into a financial tool.
Join @tapswap_bot
Collaboration - @taping_Guru
Last updated 1 day, 6 hours ago
Dont forget to share your feedback about developing with Go ✍️
https://go.dev/blog/survey2024-h2
go.dev
Share your feedback about developing with Go - The Go Programming Language
Help shape the future of Go by sharing your thoughts via the Go Developer Survey
Providing 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
Joseph Woodward's Blog
Providing context to cancellations in Go 1.20 with the new context WithCause API
Some 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/
Ahmet Alp Balkan
Kubernetes CRD generation pitfalls
A quick code search query reveals at least 7,000 Kubernetes Custom Resource Definitions in the open source corpus,1 most of which are likely generated with controller-gen —a tool that turns Go structs with comments-based markers into Kubernetes CRD...
Old 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/
www.joeshaw.org
Don't defer Close() on writable files
It'll bite you some day
How do you track code coverage for OSS projects?
codecov seems very flaky, (will provide some details in thread)
wdyt about https://github.com/vladopajic/go-test-coverage?tab=readme-ov-file
GitHub
GitHub - vladopajic/go-test-coverage: go-test-coverage is tool and github action which reports issues when test coverage is below…
go-test-coverage is tool and github action which reports issues when test coverage is below set threshold - GitHub - vladopajic/go-test-coverage: go-test-coverage is tool and github action which r...
TIL: a % 128 = 0 is the same as a & 127 = 0
'Which is a faster operation since it just requires doing the AND and not the whole division and remainder comparison' @jesusvazquezp
from https://github.com/prometheus/prometheus/pull/14118#pullrequestreview-2068077407
GitHub
Check context every 128 labels instead of 100 by colega · Pull Request #14118 · prometheus/prometheus
Follow up on #14096 As promised, I bring a benchmark, which shows a very small improvement if context is checked every 128 iterations of label instead of every 100. It's much easier for a compu...
proposal: reflect: add TypeAssert
likely accepted ? ')
https://github.com/golang/go/issues/62121
GitHub
proposal: reflect: add TypeAssert · Issue #62121 · golang/go
Consider the following benchmark: func Benchmark(b *testing.B) { v := reflect.ValueOf(new(time.Time)).Elem() b.ReportAllocs() for i := 0; i < b.N; i++ { \_ = v.Interface().(time.Time) } } This cu...
Collections what's new in Go 1.22:
- slices.Concat https://blog.carlana.net/post/2024/golang-slices-concat/
- reflect.TypeFor https://blog.carlana.net/post/2024/golang-reflect-type-for/
- https://pkg.go.dev/cmp#Or
- https://pkg.go.dev/net/http@master#FileServerFS
- https://pkg.go.dev/database/sql#Null
Community chat: https://t.me/hamster_kombat_chat_2
Twitter: x.com/hamster_kombat
YouTube: https://www.youtube.com/@HamsterKombat_Official
Bot: https://t.me/hamster_kombat_bot
Game: https://t.me/hamster_kombat_bot/
Last updated 2 weeks, 1 day ago
Your easy, fun crypto trading app for buying and trading any crypto on the market
Last updated 1 week, 1 day ago
Turn your endless taps into a financial tool.
Join @tapswap_bot
Collaboration - @taping_Guru
Last updated 1 day, 6 hours ago