Question

On the godoc site, most libraries (http://godoc.org/github.com/beego/memcache for example) link directly to the source on github. When I run the godoc tool locally, this is not the case. We also have a local godoc server for our team, and it similarly does not link to the source on github. Our code is stored on github, and is organized accordingly (ie, github.com/mycompany/packagename). Is there a way to tell the godoc tool to link to code on github, even if it's in a private repo?

Était-ce utile?

La solution

As mentioned in the comments, godoc (Go Doc Dot Org) generates its own links to the source.

You can see that generation in gddo-server/template.go#L49-L62 SourceLink().

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top