github.com/6543-forks/go-swagger@v0.26.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 .Example }} 14 // Example: {{ print .Example }} 15 {{- end }} 16 {{- end }}