Apologies, I misread your comment. But can you elaborate on your statement that tree-shaking (more commonly referred to as dead-code-elimination) is no longer required?
1,312 karma · joined September 9, 2012
So there are two choices here:
1. The Go compiler complains about code which is unused by the current main package.
2. The Go compiler tries to find/compile all main packages every-time.
Both of these options suck. deadcode ./cmd/... w := jsonx.New(os.Stdout)
w.OpenObject()
w.ObjectKey("commit")
w.Int(0)
w.CloseObject() go: errors parsing go.mod:
go.mod:3: invalid go version '1.21.0': must match format 1.23
However, this will only happen if you use the `go mod init` to create your module. If you manually specify `go 1.21` in your `go.mod`, it will build without complaining.