From a48d6ba4b4be4207a2c78c36b095fb69938e5ae5 Mon Sep 17 00:00:00 2001 From: John Olheiser Date: Tue, 30 Aug 2022 21:15:45 -0500 Subject: Go 1.19 format (#20758) * 1.19 gofumpt Signed-off-by: jolheiser * Change CSV test Signed-off-by: jolheiser * Commit whitespace fixes from @zeripath Co-authored-by: zeripath * Update emoji Signed-off-by: jolheiser * bump swagger & fix generate-swagger Signed-off-by: jolheiser Co-authored-by: zeripath Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Lauris BH --- modules/util/string.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'modules/util') 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 "" -- cgit v1.2.3