{{with .PDoc}} {{if $.IsMain}} {{/* command documentation */}} {{comment_html .Doc}} {{else}} {{/* package documentation */}}
import "{{html .ImportPath}}"
Overview
{{if .Consts}}
Constants
{{end}} {{if $.Examples}}
Examples
{{end}}

Overview ▾

{{comment_html .Doc}}
{{example_html $ ""}}

Operations ▾

{{range .Funcs}} {{$name_html := html .Name}}
{{node_html $ .Decl false | sanitize}}
{{end}} {{range .Types}} {{$tname_html := html .Name}} {{range .Funcs}} {{$name_html := html .Name}}
{{node_html $ .Decl false | sanitize}}
{{end}} {{range .Methods}} {{if (and (ne .Name "String") (ne .Name "GoString")) }} {{$name_html := html .Name}}
{{node_html $ .Decl false | sanitize}}
{{end}} {{end}} {{end}} {{if $.Notes}} {{range $marker, $item := $.Notes}}
{{noteTitle $marker | html}}s
{{end}} {{end}}

Types ▾

{{if .Vars}}
Variables
{{end}} {{range .Types}} {{$tname_html := html .Name}}
type {{$tname_html}}
{{end}}
{{if $.Examples}}

Examples ▾

{{range $.Examples}}
{{example_name .Name}}
{{end}}
{{end}} {{with .Consts}}

Constants

{{range .}}
{{node_html $ .Decl true}}
{{comment_html .Doc}} {{end}} {{end}} {{with .Vars}}

Variables

{{range .}}
{{node_html $ .Decl true}}
{{comment_html .Doc}} {{end}} {{end}} {{range .Funcs}} {{/* Name is a string - no need for FSet */}} {{$name_html := html .Name}}

func {{$name_html}}

{{node_html $ .Decl true}}
{{comment_html .Doc}} {{example_html $ .Name}} {{callgraph_html $ "" .Name}} {{end}} {{range .Types}} {{$tname := .Name}} {{$tname_html := html .Name}}

type {{$tname_html}}

{{node_html $ .Decl true}}
{{comment_html .Doc}} {{range .Consts}}
{{node_html $ .Decl true}}
{{comment_html .Doc}} {{end}} {{range .Vars}}
{{node_html $ .Decl true}}
{{comment_html .Doc}} {{end}} {{example_html $ $tname}} {{implements_html $ $tname}} {{methodset_html $ $tname}} {{range .Funcs}} {{$name_html := html .Name}}

func {{$name_html}}

{{node_html $ .Decl true}}
{{comment_html .Doc}} {{example_html $ .Name}} {{callgraph_html $ "" .Name}} {{end}} {{range .Methods}} {{$name_html := html .Name}} {{if (and (ne .Name "String") (ne .Name "GoString")) }}

func ({{html .Recv}}) {{$name_html}}

{{node_html $ .Decl true}}
{{comment_html .Doc}} {{$name := printf "%s_%s" $tname .Name}} {{example_html $ $name}} {{callgraph_html $ .Recv .Name}} {{end}} {{end}} {{end}} {{end}} {{with $.Notes}} {{range $marker, $content := .}}

{{noteTitle $marker | html}}s

{{end}} {{end}} {{end}} {{with .PAst}} {{range $filename, $ast := .}} {{$filename|filename|html}}:
{{node_html $ $ast false}}
{{end}} {{end}}