Skip to content

Commit 5ef7dd5

Browse files
committed
doc: add example.
1 parent 3957c09 commit 5ef7dd5

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

readme.md

+17-4
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,26 @@ Supported string casing:
1111
- `pascal`
1212
- `kebab`
1313
- `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).
1818
- `upper`
1919
- `lower`
2020

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+
2134
## Examples
2235

2336
```go

0 commit comments

Comments
 (0)