Get the latest tech news
Go 1.24's go tool is one of the best additions to the ecosystem in years
Why I'm very excited about `go tool` landing in Go 1.24.
Sometimes this will a dependency that's needed for go generate ing, or it may be that you want to pipe your go test output into a JUnit-compatible format, so your CI platform can provide more useful metadata. This was something we worked on for oapi-codegen's v2 release to further reduce unnecessary dependencies, and make things a bit cleaner for our consumers. I'm a big fan of the fact that as of Go 1.24+ the go run s will be cached, so even if you don't move over to go tool, you'll get a performance boost!
Or read this on Hacker News