{{ $pkg := .Params.package}} {{ $funcs := index site.Data.docs.tpl.funcs $pkg }} {{ range $k, $v := $funcs }} {{ if $v.Description }} {{ $func := printf "%s.%s" $pkg $k }}

{{ $func }}

{{ with $v.Description }}

{{ . | $.RenderString | safeHTML }}

{{ end }}

Syntax

{{ $pkg }}.{{ $k }} {{ with $v.Args }} {{ delimit $v.Args ", "}} {{ end }}
{{ if $v.Examples }}

Examples

{{ end }} {{ range $v.Examples }} {{ $input := index . 0 }} {{ $result := index . 1 }} {{ $example := printf "%s ---> %s" $input $result }} {{ highlight $example "go-html-template" "" }} {{ end }} {{ with $v.Aliases }}

Aliases

{{ delimit . ", "}}

{{ end }} {{ end }} {{ end }}