github.com/kaisawind/go-swagger@v0.19.0/generator/templates/server/doc.gotmpl (about)

     1  // Code generated by go-swagger; DO NOT EDIT.
     2  
     3  
     4  {{ if .Copyright -}}// {{ comment .Copyright -}}{{ end }}
     5  
     6  
     7  /*
     8  Package {{ .APIPackage }} {{ if .Info.Title }}{{ .Info.Title }}{{ else }}{{ humanize .Name -}}{{end}}{{ if .Info.Description }}
     9  {{ .Info.Description }}
    10  {{ end }}{{ if .Info.TermsOfService }}
    11  Terms Of Service:
    12  
    13  {{ .Info.TermsOfService }}
    14  {{ end }}{{ if or .Schemes .Host .BasePath .Info }}
    15  {{ if .Schemes }}
    16      Schemes: {{ range .Schemes }}
    17        {{.}}{{ end }}{{ end }}{{ if .Host }}
    18      Host: {{ .Host }}{{ end }}{{ if .BasePath }}
    19      BasePath: {{ .BasePath }}{{ end}}{{ with .Info }}{{ if .Version }}
    20      Version: {{ .Version }}{{ end }}{{ if .License }}
    21      License: {{ if .License.Name }}{{ .License.Name}} {{ end }}{{ if .License.URL }}{{ .License.URL }}{{ end }}{{ end }}{{ if .Contact }}
    22      Contact: {{ if .Contact.Name }}{{ .Contact.Name }}{{ end }}{{ if .Contact.Email }}<{{ .Contact.Email }}>{{ end }}{{ if .Contact.URL }} {{ .Contact.URL }}{{ end }}{{ end }}{{ end }}{{ if .Consumes }}
    23  
    24      Consumes:{{ range .Consumes }}
    25      - {{ .MediaType -}}
    26      {{ end }}{{ end }}{{ if .Produces }}
    27  
    28      Produces:{{ range .Produces }}
    29      - {{ .MediaType -}}
    30      {{ end }}{{ end }}
    31  {{ end }}
    32  swagger:meta
    33  */
    34  package {{ .APIPackage }}