github.com/anthonyme00/gomarkdoc@v1.0.0/templates/func.gotxt (about)

     1  {{- if .Receiver -}}
     2  	{{- rawAnchorHeader .Level (codeHref .Location | link (escape .Name) | printf "func \\(%s\\) %s" (escape .Receiver)) .Anchor -}}
     3  {{- else -}}
     4  	{{- rawAnchorHeader .Level (codeHref .Location | link (escape .Name) | printf "func %s") .Anchor -}}
     5  {{- end -}}
     6  {{- spacer -}}
     7  
     8  {{- codeBlock "go" .Signature -}}
     9  {{- spacer -}}
    10  
    11  {{- template "doc" .Doc -}}
    12  
    13  {{- if len .Examples -}}
    14  	{{- spacer -}}
    15  
    16  	{{- range (iter .Examples) -}}
    17  		{{- template "example" .Entry -}}
    18  		{{- if (not .Last) -}}{{- spacer -}}{{- end -}}
    19  	{{- end -}}
    20  {{- end -}}
    21