chore: update README.md for title case function

This commit is contained in:
Roshan Ranabhat 2023-01-20 17:15:37 +05:45
parent b3896cb20c
commit 7d229793da
1 changed files with 10 additions and 1 deletions

View File

@ -55,7 +55,7 @@ Convert string to camel case, snake case, kebab case / slugify, custom delimiter
<tr>
<td><a href="#suffixstring-string">Suffix</a></td>
<td><a href="#acronym-string">Acronym</a></td>
<td></td>
<td><a href="#title-string">Title</a></td>
</tr>
</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...
```
#### 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