From 7d229793dacdad14c3d367eeb2531f7bb69ceaba Mon Sep 17 00:00:00 2001 From: Roshan Ranabhat Date: Fri, 20 Jan 2023 17:15:37 +0545 Subject: [PATCH] chore: update README.md for title case function --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9fa31f6..5b88722 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ Convert string to camel case, snake case, kebab case / slugify, custom delimiter Suffix Acronym - + Title @@ -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