go.tools/godoc/analysis: convert path to url (fixes windows build)
LGTM=bradfitz R=golang-codereviews, bradfitz CC=golang-codereviews https://golang.org/cl/94440043
This commit is contained in:
parent
240540d096
commit
63a1026f64
|
@ -388,7 +388,7 @@ func Run(pta bool, result *Result) {
|
||||||
for _, root := range roots {
|
for _, root := range roots {
|
||||||
rel := strings.TrimPrefix(abs, root)
|
rel := strings.TrimPrefix(abs, root)
|
||||||
if len(rel) < len(abs) {
|
if len(rel) < len(abs) {
|
||||||
a.path2url[abs] = "/src/pkg/" + rel
|
a.path2url[abs] = "/src/pkg/" + filepath.ToSlash(rel)
|
||||||
continue nextfile
|
continue nextfile
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue