Skip to content

Commit caf1d07

Browse files
committed
readme contains info about new format too
1 parent a90690f commit caf1d07

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ Slice printing is **50% faster with 8 items** slice and **250% with 20 items** s
1717
![String Formatter: a convenient string formatting tool](img/benchmarks_adv.png)
1818
2. Additional text utilities:
1919
- convert ***map to string*** using one of predefined formats (see `text_utils.go`)
20+
3. Code Style formatting utilities
21+
- convert `snake`/`kebab`/`camel` programming code to each other and vice versa (see `stringstyle_formatter.go`).
2022

2123
### 1. Text formatting from templates
2224

@@ -80,6 +82,12 @@ For more convenient lines formatting we should choose how arguments are represen
8082
6. Lists
8183
- `{0:L-}, [1,2,3] outputs -> 1-2-3`
8284
- `{0:L, }, [1,2,3] outputs -> 1, 2, 3`
85+
7. Code
86+
- `{0:c:snake}, myFunc outputs -> my_func`
87+
- `{0:c:Snake}, myFunc outputs -> My_func`
88+
- `{0:c:SNAKE}, read-timeout outputs -> READ_TIMEOUT`
89+
- `{0:c:camel}, my_variable outputs -> myVariable`
90+
- `{0:c:Camel}, my_variable outputs -> MyVariable`
8391

8492
##### 1.2.4 Benchmarks of the Format and FormatComplex functions
8593

0 commit comments

Comments
 (0)