mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 10:56:10 +01:00 
			
		
		
		
	Go 1.19 format (#20758)
* 1.19 gofumpt Signed-off-by: jolheiser <john.olheiser@gmail.com> * Change CSV test Signed-off-by: jolheiser <john.olheiser@gmail.com> * Commit whitespace fixes from @zeripath Co-authored-by: zeripath <art27@cantab.net> * Update emoji Signed-off-by: jolheiser <john.olheiser@gmail.com> * bump swagger & fix generate-swagger Signed-off-by: jolheiser <john.olheiser@gmail.com> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Lauris BH <lauris@nix.lv>
This commit is contained in:
		| @@ -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 "" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user