github.com/phsym/gomarkdoc@v0.5.4/templates/type.gotxt (about) 1 {{- codeHref .Location | link (escape .Name) | printf "type %s" | rawHeader .Level -}} 2 3 {{- template "doc" .Doc -}} 4 5 {{- codeBlock "go" .Decl -}} 6 7 {{- range .Consts -}} 8 {{- template "value" . -}} 9 {{- end -}} 10 11 {{- range .Vars -}} 12 {{- template "value" . -}} 13 {{- end -}} 14 15 {{- range .Examples -}} 16 {{- template "example" . -}} 17 {{- end -}} 18 19 {{- range .Funcs -}} 20 {{- template "func" . -}} 21 {{- end -}} 22 23 {{- range .Methods -}} 24 {{- template "func" . -}} 25 {{- end -}} 26