TGViewer
Go Go @golang · 19.2K subscribers
Post #159 41.5K
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/oapi-codegen@v2.4.1

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.me/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
  • 👍 132
  • ❤ 68
  • 🔥 44
  • 👎 33
  • 👏 31
  • 🤔 24
  • 🤯 18
  • 💩 12
More from @golang
  1. Oct 1, 2026It's been a while... Everything is going agentic, so there is rather an interesting projec…
  2. Mar 20, 2026If you’re working with Go and care about performance, then check out the https://goperf.de…
  3. Jan 17, 2026Are Atomic Operations Faster and Better Than a Mutex? It Depends From the author: "Recentl…
  4. Nov 29, 2025Hello, folks, it's been a while. Re-sharing an interetsting recording from GopherCon 2025:…
  5. Aug 18, 2025Be Careful with Go Struct Embedding Embedding structs can quietly mask deeper-nested field…
  6. May 31, 2025What's new in Go: Google I/O presentation https://www.youtube.com/watch?v=kj80m-umOxs&ab_c…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →