From d09466479889f9fa46fd9200dcccc403ed55399f Mon Sep 17 00:00:00 2001 From: SirSova Date: Tue, 19 Sep 2023 13:53:21 +0300 Subject: [PATCH] remove "title" func --- docs/configuration.md | 1 - pkg/outputter.go | 1 - 2 files changed, 2 deletions(-) diff --git a/docs/configuration.md b/docs/configuration.md index ab3e25f44..37e26de5e 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -233,7 +233,6 @@ To learn more about the templating syntax, please [see the Go `text/template` do * [`trimSuffix` string suffix](https://pkg.go.dev/strings#TrimSuffix) * [`lower` string suffix](https://pkg.go.dev/strings#ToLower) * [`upper` string suffix](https://pkg.go.dev/strings#ToUpper) -* [`title` string suffix](https://pkg.go.dev/strings#ToTitle) * [`camelcase` string suffix](https://pkg.go.dev/github.com/huandu/xstrings#ToCamelCase) * [`snakecase` string suffix](https://godoc.org/github.com/huandu/xstrings#ToSnakeCase) * [`kebabcase` string suffix](https://godoc.org/github.com/huandu/xstrings#ToKebabCase) diff --git a/pkg/outputter.go b/pkg/outputter.go index de38b6a60..70c312234 100644 --- a/pkg/outputter.go +++ b/pkg/outputter.go @@ -48,7 +48,6 @@ var templateFuncMap = template.FuncMap{ "trimSuffix": strings.TrimSuffix, "lower": strings.ToLower, "upper": strings.ToUpper, - "title": strings.ToTitle, "camelcase": xstrings.ToCamelCase, "snakecase": xstrings.ToSnakeCase, "kebabcase": xstrings.ToKebabCase,