Skip to content

Commit 70e411d

Browse files
committed
README: Add unicode support example
1 parent 614f62f commit 70e411d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![GoDoc Widget]][GoDoc]
44

5-
Golang pkg to convert any text input to camelCase, PascalCase or snake_case via a fast state machine parser. Removes all whitespaces and special characters. Supports Unicode characters.
5+
Golang pkg to convert any text input to camelCase, PascalCase or snake_case naming convention. Removes all whitespaces and special characters. Supports Unicode characters.
66

77
## Usage
88
```go
@@ -15,7 +15,7 @@ textcase.CamelCase("Hello World!")
1515
```
1616

1717
```go
18-
textcase.CamelCase("Hello World!")
18+
textcase.PascalCase("Hello World!")
1919
// HelloWorld
2020
```
2121

@@ -24,6 +24,12 @@ textcase.SnakeCase("Hello World!")
2424
// hello_world
2525
```
2626

27+
## Unicode support
28+
```go
29+
textcase.CamelCase("Háčky, čárky. Příliš žluťoučký kůň úpěl ďábelské ódy.")
30+
// háčkyČárkyPřílišŽluťoučkýKůňÚpělĎábelskéÓdy
31+
```
32+
2733
# License
2834
Licensed under [MIT License](./LICENSE)
2935

0 commit comments

Comments
 (0)