github.com/go-swagger/go-swagger@v0.31.0/generator/templates/docstring.gotmpl (about)

     1  {{ define "docstring" }}
     2    {{- if .Title }}
     3      {{- comment .Title }}
     4      {{- if .Description }}
     5  //
     6  // {{ comment .Description }}
     7      {{- end }}
     8    {{- else if .Description}}
     9      {{- comment .Description }}
    10    {{- else }}
    11      {{- humanize .Name }}
    12    {{- end }}
    13    {{- if or .MinProperties .MaxProperties }}
    14  //
    15      {{- if .MinProperties }}
    16  // MinProperties: {{ .MinProperties }}
    17      {{- end }}
    18      {{- if .MaxProperties }}
    19  // MaxProperties: {{ .MaxProperties }}
    20      {{- end }}
    21    {{- end }}
    22    {{- if .Example }}
    23  // Example: {{ print .Example }}
    24    {{- end }}
    25  {{- end }}