On Wed, Apr 22, 2026 at 01:07:54PM -0700, Kevin Chowski wrote:
> I /meant/ to run `go doc http.Handle` but I typed `go doc http.Register`
> instead. The former works fine, whereas the latter gives me an unexpected
> error:
I always use the 2 argument form; `go doc http Handle`. That way the
first argument is the package, the second the symbol you're after.
And it has the advantage that if you ask for a symbol that doesn't
exist, you get an error like you were expecting:
```
$ go doc http Register
doc: no symbol Register in package net/http
```
You're right the error message from `go doc http.Register` was
unhelpful, though, that could definitely be improved. I'd encourage
you to open an issue on github for it.
Nick