go-chi / go-chi/docgen

Generated hyperlinks are not correct

Open
#24 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
127
Forks
27
PR merge metrics
No merged PRs in 30d

Description

I am using the chi middleware and importing it like this:
```
"github.com/go-chi/chi/v5/middleware"
```
The hyperlinks for the middleware methods that are being used is not correct. For instance, for the Logger methods the link generated is:
```
https://github.com/go-chi/chi/blob/master/@v5.0.11/middleware/logger.go#L39
```
That link does not work and gives a 404. I am also passing a URL map to the method like this but it does not help (maybe I am doing it wrong?)
```
URLMap: map[string]string{
"github.com/go-chi/chi/v5": "https://github.com/go-chi/chi/blob/master/",
},
```

Any help is appreciated.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.