{{define "Analytics"}}{{with gaAccount}}{{end}}{{end}} {{define "SearchBox"}}
{{end}} {{define "ProjectNav"}}{{template "FlashMessages" .flashMessages}}
{{if .pdoc.ProjectRoot}}{{if .pdoc.ProjectURL}}{{.pdoc.ProjectName}}:{{else}}{{.pdoc.ProjectName}}:{{end}}{{else}}Go:{{end}} {{.pdoc.Breadcrumbs templateName}} {{if and .pdoc.Name (or templateName "pkg.html" templateName "cmd.html")}} {{if not .pdoc.IsCmd}} Index {{if .pdoc.AllExamples}}| Examples{{end}} | {{end}} Files {{if .pkgs}}| Directories{{end}} {{end}}
{{end}} {{define "Pkgs"}} {{range .}} {{end}}
PathSynopsis
{{if .Path|isValidImportPath}}{{.Path|importPath}}{{else}}{{.Path|importPath}}{{end}}{{.Synopsis|importPath}}
{{end}} {{define "SearchPkgs"}} {{range .}} {{end}} {{end}}
PathSynopsis
{{if .Path|isValidImportPath}} {{.Path|importPath}}
  • {{.ImportCount}} imports
  • {{if .Fork}}
  • · fork
  • {{end}} {{if .Stars}}
  • · {{.Stars}} stars
  • {{end}}
{{else}}{{.Path|importPath}}
{{.Synopsis|importPath}}
{{end}} {{define "PkgCmdHeader"}}{{with .pdoc}} {{.PageName}} - GoDoc {{if .Synopsis}} {{end}} {{if .Errors}}{{end}} {{end}}{{end}} {{define "PkgFiles"}}{{with .pdoc}}

{{with .BrowseURL}}Package Files{{else}}Package Files{{end}}

{{range .Files}}{{if .URL}}{{.Name}}{{else}}{{.Name}}{{end}} {{end}}

{{end}}{{end}} {{define "PkgCmdFooter"}} {{with .pdoc}}{{with .Notes}}{{with .BUG}}

Bugs

{{range .}}

{{$.pdoc.SourceLink .Pos "☞" true}} {{.Body}}{{end}} {{end}}{{end}}{{end}} {{if $.pkgs}}

Directories

{{range $.pkgs}}{{end}}
PathSynopsis
{{relativePath .Path $.pdoc.ImportPath}}{{.Synopsis}}
{{end}}
{{with $.pdoc}}

{{if or .Imports $.importerCount}}Package {{.Name}} {{if .Imports}}imports {{.Imports|len}} packages (graph){{end}}{{if and .Imports $.importerCount}} and {{end}}{{if $.importerCount}}is imported by {{$.importerCount}} packages{{end}}.{{end}} {{if not .Updated.IsZero}}Updated {{.Updated.Format "2006-01-02"}}{{if or (equal .GOOS "windows") (equal .GOOS "darwin")}} with GOOS={{.GOOS}}{{end}}.{{end}} Refresh now. Tools for package owners. {{.StatusDescription}} {{end}} {{with $.pdoc.Errors}}

The go get command cannot install this package because of the following issues:

{{end}}
{{end}} {{define "FlashMessages"}}{{range .}} {{if eq .ID "redir"}}{{if eq (len .Args) 1}}
Redirected from {{index .Args 0}}.
{{end}} {{else if eq .ID "refresh"}}{{if eq (len .Args) 1}}
Error refreshing package: {{index .Args 0}}
{{end}} {{end}} {{end}}{{end}}