I did not have GO111MODULE set.
a@spot:~$ env | grep GO
GOROOT_BOOTSTRAP=/home/a/go1.18.5
GOROOT=/home/a/go
GOPATH=/home/a
a@spot:~$
and I use current Go tip.
godoc only shows "Third party" section if I am inside of any go module directory, but not in /tmp .
Note how GOMOD setting changes in godoc output as I change my directories.
If I use GO111MODULE environment variable
then godoc displays "using GOPATH mode" message, and displays all packages I have in my GOPATH on one large single page.
This is not useful in my scenario, because we have many independent teams working on many independent Go repos. I don't see how it would be possible for me to automatically download and keep up-to-date then all into single GOPATH. And it would be overwhelming to see all our packages on one single page. And godoc does not displays package versions.
But thanks for trying.
Alex
On Monday, 12 September 2022 at 18:31:11 UTC+10 Jan Mercl wrote: