As of Go 1.25, the go doc subcommand directly includes the code that was previously in cmd/doc, and no longer executes that command. While the doc tool could still be executed using go tool doc it is really meant to be run using go doc.

We plan to remove cmd/doc, and also the ability to run go tool doc in Go 1.26 since it's no longer necessary.

Comment From: gabyhelp

Related Issues

Related Code Changes

Related Documentation

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)

Comment From: gopherbot

Change https://go.dev/cl/689835 mentions this issue: cmd/doc: delete

Comment From: gopherbot

Change https://go.dev/cl/689836 mentions this issue: cmd/internal/doc: merge with cmd/go/internal/doc

Comment From: gopherbot

Change https://go.dev/cl/689875 mentions this issue: cmd/go/internal/doc: clean up after merge with cmd/internal/doc