--- a/internal/html/tmpl/package.html
+++ b/internal/html/tmpl/package.html
@@ -6,15 +6,15 @@
{{ define "NavbarExtra" }} | Index{{ end -}}
{{ define "Body" -}}
-
+
{{- /**/ -}}
package {{ .Name -}}
-
+
{{ .Import | code }}
{{ .Doc | doc 3 -}}
{{ template "examples" (dict "Level" 3 "Examples" .Examples) -}}
-Index
+Index
{{ if or .Constants .Variables .Functions .Types -}}
{{ if .Constants }}- Constants
{{ end -}}
@@ -41,7 +41,7 @@
{{- end }}
{{- with .AllExamples -}}
-Examples
+Examples
{{ range . -}}
{{- $id := printf "example-%s" .Parent.String -}}
@@ -54,20 +54,20 @@
{{- end -}}
{{ with .Constants -}}
- Constants
+ Constants
{{ range . }}{{ template "constOrVar" . }}{{ end -}}
{{ end -}}
{{ with .Variables -}}
- Variables
+ Variables
{{ range . }}{{ template "constOrVar" . }}{{ end -}}
{{ end -}}
{{ with .Functions -}}
- Functions
+ Functions
{{ range . -}}
{{ if .Deprecated }}{{ end -}}
- func {{ .Name }} {{- template "deprecatedTag" . }}
+ func {{ .Name }} {{- template "deprecatedTag" . }}
{{- if .Deprecated }}
{{ end }}
{{ .Decl | code }}
{{ .Doc | doc 4 -}}
@@ -77,10 +77,10 @@
{{ end -}}
{{ with .Types -}}
- Types
+ Types
{{ range . -}}
{{ if .Deprecated }}{{ end -}}
- type {{ .Name }} {{- template "deprecatedTag" . }}
+ type {{ .Name }} {{- template "deprecatedTag" . }}
{{- if .Deprecated }}
{{ end }}
{{ .Decl | code }}
{{ .Doc | doc 4 -}}
@@ -119,7 +119,7 @@
{{ $id := .Name -}}
{{ with .RecvType }}{{ $id = printf "%s.%s" . $id }}{{ end -}}
{{ if .Deprecated }}{{ end -}}
- func {{ with .Recv }}({{ . }}) {{end }}{{ .Name }} {{- template "deprecatedTag" . }}
+ func {{ with .Recv }}({{ . }}) {{end }}{{ .Name }} {{- template "deprecatedTag" . }}
{{- if .Deprecated }}
{{ end }}
{{ .Decl | code }}
{{ .Doc | doc 5 -}}