summaryrefslogtreecommitdiffstats
path: root/modules/util/string.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/util/string.go')
-rw-r--r--modules/util/string.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/util/string.go b/modules/util/string.go
index 4301f75f99..2da2bc5dc4 100644
--- a/modules/util/string.go
+++ b/modules/util/string.go
@@ -17,13 +17,13 @@ func isSnakeCaseLowerOrNumber(c byte) bool {
// ToSnakeCase convert the input string to snake_case format.
//
// Some samples.
-// "FirstName" => "first_name"
-// "HTTPServer" => "http_server"
-// "NoHTTPS" => "no_https"
-// "GO_PATH" => "go_path"
-// "GO PATH" => "go_path" // space is converted to underscore.
-// "GO-PATH" => "go_path" // hyphen is converted to underscore.
//
+// "FirstName" => "first_name"
+// "HTTPServer" => "http_server"
+// "NoHTTPS" => "no_https"
+// "GO_PATH" => "go_path"
+// "GO PATH" => "go_path" // space is converted to underscore.
+// "GO-PATH" => "go_path" // hyphen is converted to underscore.
func ToSnakeCase(input string) string {
if len(input) == 0 {
return ""