~sircmpwn/godocs.io

1

Redirecting in case the import path doesn't match?

Details
Message ID
<6e8ef2ee-a9f5-92e3-106c-396c89f0a17e@push-f.com>
DKIM signature
missing
Download raw message
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 :)

Cheers,
Martin
Details
Message ID
<COORKNA2K7KU.2XIQBBF2C5FZK@nitro>
In-Reply-To
<6e8ef2ee-a9f5-92e3-106c-396c89f0a17e@push-f.com> (view parent)
DKIM signature
pass
Download raw message
On Wed Nov 23, 2022 at 4:03 AM EST, Martin Fischer wrote:
> 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 :)

I agree that this would be convenient. If you want to take a stab at it,
please send a patch :)
Reply to thread Export thread (mbox)