Re:Pkg.go.dev is more concerned with Google's interests than...
by throwayws on Sunday August 02, 2020 @02:06AM
(#24026705)
There was a proposal to add a new go-source-2 meta tag, but that was abandoned because a lot of code hosting sites would not have been supported yet:
https://github.com/golang/go/issues/39559
https://github.com/golang/go/issues/40477
That is why they decided to turn it into an internal/source package inside pkgsite first to have test cases for a later go-source-2. If your site does not show source links on pkg.go.dev then add a comment to issue 40477 above and an exception will be added.
- internal/source: https://github.com/golang/pkgsite/blob/master/internal/sourc...
Note1: Maybe mention this on your website because that took a little to find. It does not fit into the narrative though.
Note2: Requiring frontends to offer meta tags is the only way to make code discoverable with the url alone. cgit not offering this is on cgit and not on Go/pkgsite (haven't checked whether they do)
https://news.ycombinator.com/item?id=24024130
It doesn't work on godoc.org not because they don't recognize your domain, but because cgit doesn't have go-source meta tags.