mirror of https://github.com/gobeam/stringy.git
chore: update README.md for title case function
This commit is contained in:
parent
b3896cb20c
commit
7d229793da
11
README.md
11
README.md
|
@ -55,7 +55,7 @@ Convert string to camel case, snake case, kebab case / slugify, custom delimiter
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="#suffixstring-string">Suffix</a></td>
|
<td><a href="#suffixstring-string">Suffix</a></td>
|
||||||
<td><a href="#acronym-string">Acronym</a></td>
|
<td><a href="#acronym-string">Acronym</a></td>
|
||||||
<td></td>
|
<td><a href="#title-string">Title</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
@ -306,6 +306,15 @@ Tease takes two params length and indicator and it shortens given string on pass
|
||||||
fmt.Println(teaseString.Tease(20, "...")) // Hello My name is Ros...
|
fmt.Println(teaseString.Tease(20, "...")) // Hello My name is Ros...
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### Title() string
|
||||||
|
|
||||||
|
Title returns string with first letter of each word in uppercase it can be chained on function which return StringManipulation interface.
|
||||||
|
|
||||||
|
```go
|
||||||
|
title := stringy.New("hello roshan")
|
||||||
|
fmt.Println(title.Title()) // Hello Roshan
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
#### ToLower() string
|
#### ToLower() string
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue