Marvin Preuss
d095180eb4
All checks were successful
continuous-integration/drone/push Build is passing
81 lines
3.3 KiB
Cheetah
81 lines
3.3 KiB
Cheetah
{{with .PDoc}}
|
|
# Go Strcase
|
|
|
|
[![Go Report Card](https://goreportcard.com/badge/github.com/ettle/strcase)](https://goreportcard.com/report/github.com/ettle/strcase)
|
|
[![Coverage](http://gocover.io/_badge/github.com/ettle/strcase?0)](http://gocover.io/github.com/ettle/strcase)
|
|
[![GoDoc](https://godoc.org/github.com/ettle/strcase?status.svg)](https://pkg.go.dev/github.com/ettle/strcase)
|
|
|
|
Convert strings to `snake_case`, `camelCase`, `PascalCase`, `kebab-case` and more! Supports Go initialisms, customization, and Unicode.
|
|
|
|
`import "{{.ImportPath}}"`
|
|
|
|
## <a name="pkg-overview">Overview</a>
|
|
{{comment_md .Doc}}
|
|
{{example_html $ ""}}
|
|
|
|
## <a name="pkg-index">Index</a>{{if .Consts}}
|
|
* [Constants](#pkg-constants){{end}}{{if .Vars}}
|
|
* [Variables](#pkg-variables){{end}}{{- range .Funcs -}}{{$name_html := html .Name}}
|
|
* [{{node_html $ .Decl false | sanitize}}](#{{$name_html}}){{- end}}{{- range .Types}}{{$tname_html := html .Name}}
|
|
* [type {{$tname_html}}](#{{$tname_html}}){{- range .Funcs}}{{$name_html := html .Name}}
|
|
* [{{node_html $ .Decl false | sanitize}}](#{{$name_html}}){{- end}}{{- range .Methods}}{{$name_html := html .Name}}
|
|
* [{{node_html $ .Decl false | sanitize}}](#{{$tname_html}}.{{$name_html}}){{- end}}{{- end}}{{- if $.Notes}}{{- range $marker, $item := $.Notes}}
|
|
* [{{noteTitle $marker | html}}s](#pkg-note-{{$marker}}){{end}}{{end}}
|
|
{{if $.Examples}}
|
|
#### <a name="pkg-examples">Examples</a>{{- range $.Examples}}
|
|
* [{{example_name .Name}}](#example_{{.Name}}){{- end}}{{- end}}
|
|
|
|
{{with .Consts}}## <a name="pkg-constants">Constants</a>
|
|
{{range .}}{{node $ .Decl | pre}}
|
|
{{comment_md .Doc}}{{end}}{{end}}
|
|
{{with .Vars}}## <a name="pkg-variables">Variables</a>
|
|
{{range .}}{{node $ .Decl | pre}}
|
|
{{comment_md .Doc}}{{end}}{{end}}
|
|
|
|
{{range .Funcs}}{{$name_html := html .Name}}## <a name="{{$name_html}}">func</a> [{{$name_html}}]({{gh_url $ .Decl}})
|
|
{{node $ .Decl | pre}}
|
|
{{comment_md .Doc}}
|
|
{{example_html $ .Name}}
|
|
{{callgraph_html $ "" .Name}}{{end}}
|
|
{{range .Types}}{{$tname := .Name}}{{$tname_html := html .Name}}## <a name="{{$tname_html}}">type</a> [{{$tname_html}}]({{gh_url $ .Decl}})
|
|
{{node $ .Decl | pre}}
|
|
{{comment_md .Doc}}{{range .Consts}}
|
|
{{node $ .Decl | pre }}
|
|
{{comment_md .Doc}}{{end}}{{range .Vars}}
|
|
{{node $ .Decl | pre }}
|
|
{{comment_md .Doc}}{{end}}
|
|
|
|
{{example_html $ $tname}}
|
|
{{implements_html $ $tname}}
|
|
{{methodset_html $ $tname}}
|
|
|
|
{{range .Funcs}}{{$name_html := html .Name}}### <a name="{{$name_html}}">func</a> [{{$name_html}}]({{gh_url $ .Decl}})
|
|
{{node $ .Decl | pre}}
|
|
{{comment_md .Doc}}
|
|
{{example_html $ .Name}}{{end}}
|
|
{{callgraph_html $ "" .Name}}
|
|
|
|
{{range .Methods}}{{$name_html := html .Name}}### <a name="{{$tname_html}}.{{$name_html}}">func</a> ({{md .Recv}}) [{{$name_html}}]({{gh_url $ .Decl}})
|
|
{{node $ .Decl | pre}}
|
|
{{comment_md .Doc}}
|
|
{{$name := printf "%s_%s" $tname .Name}}{{example_html $ $name}}
|
|
{{callgraph_html $ .Recv .Name}}
|
|
{{end}}{{end}}{{end}}
|
|
|
|
{{with $.Notes}}
|
|
{{range $marker, $content := .}}
|
|
## <a name="pkg-note-{{$marker}}">{{noteTitle $marker | html}}s
|
|
<ul style="list-style: none; padding: 0;">
|
|
{{range .}}
|
|
<li><a href="{{gh_url $ .}}">☞</a> {{html .Body}}</li>
|
|
{{end}}
|
|
</ul>
|
|
{{end}}
|
|
{{end}}
|
|
{{if .Dirs}}
|
|
## <a name="Subdirectories">Subdirectories</a>
|
|
{{range $.Dirs.List}}
|
|
{{indent .Depth}}* [{{.Name | html}}]({{print "./" .Path}}){{if .Synopsis}} {{ .Synopsis}}{{end -}}
|
|
{{end}}
|
|
{{end}}
|