github.com/kaisawind/go-swagger@v0.19.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 }}{{ humanize .Name }} 11 {{- end }} 12 {{- end }}