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.)