Go
19.5K subscribers
14 photos
143 links
// admin @denniselite
go func() { channel <- news }()
news := <-channel
fmt.Sprintf("%s", news)
Download Telegram
Go 1.24: A Major Improvement for Tooling: go tools πŸ› 

Hello, folks! The upcoming Go 1.24 (supposed to be coming this month, Feb 2025) introduces a new go tool command, aiming to significantly improve the way project-specific tools are managed. This update eliminates the need for the tools.go workaround, reduces dependency bloat, and improves performance through caching. So,
- No more tools.go hacks
- Faster execution with caching
- Cleaner and more efficient dependency management

How it works? Simple!

Add a tool:

go get -tool github.com/oapi-codegen/oapi-codegen/v2/cmd/[email protected]

Run it:

go tool github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen --config=config.yaml openapi.yaml

List available tools:

go tool


Some people say this is one of the most useful changes to Go's tooling in years, making project setups more efficient and maintainable, so take a look in more details here https://www.jvt.iss.one/posts/2025/01/27/go-tools-124/ πŸš€

PS More official docs can be found in the Go 1.24's release notes here: https://tip.golang.org/doc/go1.24#tools
πŸ‘113❀48πŸ”₯22πŸ‘10πŸ‘Ž4πŸ€”4🀯1
Be Careful with Go Struct Embedding

Embedding structs can quietly mask deeper-nested fields: a duplicate field name isn’t ambiguous unless it appears at the same β€˜depth’, meaning your program may choose an unintended value.

https://mattjhall.co.uk/posts/be-careful-with-go-struct-embedding.html
πŸ‘59πŸ”₯11πŸ€”9❀4πŸ‘Ž3
Hello, folks, it's been a while. Re-sharing an interetsting recording from GopherCon 2025:
Advancing Go Garbage Collection with Green Tea (youtube). TL;DR:

Go 1.25 includes a new experimental garbage collector called Green Tea, available by setting GOEXPERIMENT=greenteagc at build time. Many workloads spend around 10% less time in the garbage collector, but some workloads see a reduction of up to 40%!

There is an also official text version on the Green Tea Garbage Collector if one does not like to watch the video.

Thanks!
πŸ‘42❀20πŸ”₯4🀯3πŸ‘Ž1