golang.org/x/pkgsite/internal/source.Info.templates (field)
17 uses
golang.org/x/pkgsite/internal/source (current package)
source.go#L49: templates urlTemplates // for building URLs
source.go#L57: if i.templates.Repo == "" {
source.go#L61: return expand(i.templates.Repo, map[string]string{
source.go#L76: return strings.TrimSuffix(expand(i.templates.Directory, map[string]string{
source.go#L90: return expand(i.templates.File, map[string]string{
source.go#L106: return expand(i.templates.Line, map[string]string{
source.go#L124: if i.templates.Raw == "" {
source.go#L137: return expand(i.templates.Raw, map[string]string{
source.go#L173: if i.templates == templs {
source.go#L184: if ji.Kind == "" && i.templates != (urlTemplates{}) {
source.go#L185: ji.Templates = &i.templates
source.go#L201: i.templates = urlTemplatesByKind[ji.Kind]
source.go#L203: i.templates = *ji.Templates
source.go#L290: templates: templates,
source.go#L315: templates: templates,
source.go#L431: templates: templates,
source.go#L826: templates: githubURLTemplates,
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |