~push-f

test 123

Recent activity

Redirecting in case the import path doesn't match? 1 year, 8 days ago

From Martin Fischer to ~sircmpwn/godocs.io

Hi,

e.g. https://godocs.io/?q=github.com%2Fprotocolbuffers%2Fprotobuf-go
currently just displays:

 > Error fetching module: The provided import path doesn't match the 
module path present in the go.mod file.

I think it would be neat if godocs.io instead redirected you to the 
proper path
(which would be https://godocs.io/google.golang.org/protobuf in this case).

Because then you could reliably paste repository URLs to get their 
documentation, which I think would be very convenient :)