@@ -11,13 +11,26 @@ Supported string casing:
11
11
- ` pascal `
12
12
- ` kebab `
13
13
- ` snake `
14
- - ` goCamel ` Respects Go's common initialisms (e.g. HttpResponse -> HTTPResponse).
15
- - ` goPascal ` Respects Go's common initialisms (e.g. HttpResponse -> HTTPResponse).
16
- - ` goKebab ` Respects Go's common initialisms (e.g. HttpResponse -> HTTPResponse).
17
- - ` goSnake ` Respects Go's common initialisms (e.g. HttpResponse -> HTTPResponse).
14
+ - ` goCamel ` Respects [ Go's common initialisms] ( https://github.com/golang/lint/blob/83fdc39ff7b56453e3793356bcff3070b9b96445/lint.go#L770-L809 ) (e.g. HttpResponse -> HTTPResponse).
15
+ - ` goPascal ` Respects [ Go's common initialisms] ( https://github.com/golang/lint/blob/83fdc39ff7b56453e3793356bcff3070b9b96445/lint.go#L770-L809 ) (e.g. HttpResponse -> HTTPResponse).
16
+ - ` goKebab ` Respects [ Go's common initialisms] ( https://github.com/golang/lint/blob/83fdc39ff7b56453e3793356bcff3070b9b96445/lint.go#L770-L809 ) (e.g. HttpResponse -> HTTPResponse).
17
+ - ` goSnake ` Respects [ Go's common initialisms] ( https://github.com/golang/lint/blob/83fdc39ff7b56453e3793356bcff3070b9b96445/lint.go#L770-L809 ) (e.g. HttpResponse -> HTTPResponse).
18
18
- ` upper `
19
19
- ` lower `
20
20
21
+ | Source | Snake Case | Kebab Case | Pascal Case | Camel Case | Go Pascal Case | Go Camel Case | Go Snake Case | Go KebabCase |
22
+ | ----------------| ------------------| ------------------| ----------------| ----------------| ----------------| ----------------| ------------------| ------------------|
23
+ | GooID | goo_id | goo-id | GooId | gooId | gooID | GooID | goo_ID | goo-ID |
24
+ | HTTPStatusCode | http_status_code | http-status-code | HttpStatusCode | httpStatusCode | httpStatusCode | HTTPStatusCode | HTTP_status_code | HTTP-status-code |
25
+ | FooBAR | foo_bar | foo-bar | FooBar | fooBar | fooBar | FooBar | foo_bar | foo-bar |
26
+ | URL | url | url | Url | url | url | URL | URL | URL |
27
+ | ID | id | id | Id | id | id | ID | ID | ID |
28
+ | hostIP | host_ip | host-ip | HostIp | hostIp | hostIP | HostIP | host_IP | host-IP |
29
+ | JSON | json | json | Json | json | json | JSON | JSON | JSON |
30
+ | JSONName | json_name | json-name | JsonName | jsonName | jsonName | JSONName | JSON_name | JSON-name |
31
+ | NameJSON | name_json | name-json | NameJson | nameJson | nameJSON | NameJSON | name_JSON | name-JSON |
32
+ | UneTête | une_tête | une-tête | UneTête | uneTête | uneTête | UneTête | une_tête | une-tête |
33
+
21
34
## Examples
22
35
23
36
``` go
0 commit comments