{{with .PDoc}}
Overview
{{if .Consts}}
Constants
{{end}} {{if .Vars}}
Variables
{{end}} {{range .Funcs}} {{$name_html := html .Name}}
{{node_html .Decl $.FSet}}
{{end}} {{range .Types}} {{$tname := printf "%s" .Type.Name}} {{$tname_html := node_html .Type.Name $.FSet}}
type {{$tname_html}}
{{range .Funcs}} {{$name_html := html .Name}}
    {{node_html .Decl $.FSet}}
{{end}} {{range .Methods}} {{$name_html := html .Name}}
    {{node_html .Decl $.FSet}}
{{end}} {{end}} {{if .Bugs}}
Bugs
{{end}}
{{end}}
{{with .PAst}}
{{node_html . $.FSet}}
{{end}} {{with .PDoc}}

Overview

{{if $.IsPkg}}

import "{{html .ImportPath}}"

{{end}} {{comment_html .Doc}} {{if $.IsPkg}} {{with .Filenames}}

Package files

{{range .}} {{.|filename|html}} {{end}}

{{end}} {{end}} {{with .Consts}}

Constants

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

Variables

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

func {{$name_html}}

{{node_html .Decl $.FSet}}

{{comment_html .Doc}} {{example_html .Name $.Examples $.FSet}} {{end}} {{range .Types}} {{$tname := printf "%s" .Type.Name}} {{$tname_html := node_html .Type.Name $.FSet}}

type {{$tname_html}}

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

func {{$name_html}}

{{node_html .Decl $.FSet}}

{{comment_html .Doc}} {{example_html .Name $.Examples $.FSet}} {{end}} {{range .Methods}} {{$name_html := html .Name}}

func ({{node_html .Recv $.FSet}}) {{$name_html}}

{{node_html .Decl $.FSet}}

{{comment_html .Doc}} {{$name := printf "%s_%s" $tname .Name}} {{example_html $name $.Examples $.FSet}} {{end}} {{end}} {{with .Bugs}}

Bugs

{{range .}} {{comment_html .}} {{end}} {{end}} {{end}} {{with .PList}}

Other packages

{{/* PList entries are strings - no need for FSet */}} {{range .}} {{html .}}
{{end}}

{{end}} {{with .Dirs}}

Need more packages? The Package Dashboard provides a list of goinstallable packages.

{{/* DirList entries are numbers and strings - no need for FSet */}}

Subdirectories

{{if $.DirFlat}} {{else}} {{end}} {{range .List}} {{if $.DirFlat}} {{else}} {{repeat `` .Depth}} {{end}} {{end}}
NameName Synopsis
..
{{html .Path}}{{html .Name}} {{html .Synopsis}}

{{end}}