strings.Title() Function in Golang With Examples Last Updated : 19 Apr, 2020 Summarize Comments Improve Suggest changes Share Like Article Like Report strings.Title() Function returns a copy of string s with all Unicode letters of string whose begin words mapped to their Unicode title case. This method belongs to the strings package. Syntax: func Title(s string) string It returns the string. Example 1: C // Golang program to illustrate the strings.Title() function package main import ( "fmt" "strings" ) // Main function func main() { fmt.Println(strings.Title("geeks for geeks")) } Output: Geeks For Geeks Example 2: C // Golang program to illustrate the strings.Title() function package main import ( "fmt" "strings" ) // Main function func main() { fmt.Println(strings.Title("computer science portal")) } Output: Computer Science Portal Comment More infoAdvertise with us Next Article strings.TrimFunc() Function in Golang With Examples P PranchalKatiyar Follow Improve Article Tags : Go Language Golang-String Similar Reads time.String() Function in Golang With Examples In Go language, time packages supplies functionality for determining as well as viewing time. The String() function in Go language is used to find a string that represents the duration formats as "24h6m0.7s". Here, the foremost zero units are deleted. And the stated duration with less than one-secon 2 min read strings.ToTitleSpecial() Function in Golang With Examples strings.ToTitleSpecial() Function in Golang is used to returns a copy of the string s with all Unicode letters mapped to their Unicode title case, giving priority to the special casing rules. Syntax: func ToTitleSpecial(c unicode.SpecialCase, s string) string Here, c is the case mapping and s is the 1 min read strings.TrimLeftFunc() Function in Golang With Examples strings.TrimLeftFunc() Function returns a slice of the string s with all leading Unicode code points c satisfying f(c) removed. Syntax: func TrimLeftFunc(s string, f func(rune) bool) string Here, s is the string and func() is the method which satisfies the string characters. Return Value: It returns 2 min read strings.TrimFunc() Function in Golang With Examples strings.TrimFunc() Function in Golang is used to returns a slice of the string s with all leading and trailing Unicode code points c satisfying f(c) removed. Syntax: func TrimFunc(s string, f func(rune) bool) string Here, s is the string and function checks the value of rune and returns true if it c 2 min read time.Month.String() Function in Golang With Examples In Go language, time packages supplies functionality for determining as well as viewing time. The Month.String() function in Go language is used to find the English name of the month. Moreover, this function is defined under the time package. Here, you need to import the "time" package in order to u 2 min read strings.ToValidUTF8() Function in Golang With Examples strings.ToValidUTF8() Function in Golang is used to returns a copy of the string s with each run of invalid UTF-8 byte sequences replaced by the replacement string, which may be empty. Syntax: func ToValidUTF8(str, rep string) string Here, str is string which may contain invalid UTF-8 and rep is the 1 min read Like