Golang unicode.ToTitle() function example
package unicode
Golang unicode.ToTitle() function usage example.
package main
import (
"fmt"
"unicode"
)
func main() {
TitleCaseRune := unicode.ToTitle('a')
fmt.Printf("%+q\n", TitleCaseRune)
}
Reference :
Advertisement
Something interesting
Tutorials
+22.7k Golang : Set and Get HTTP request headers example
+12.5k Golang : HTTP response JSON encoded data
+10.5k Generate Random number with math/rand in Go
+11.3k Golang : How to use if, eq and print properly in html template
+13.4k Golang : Increment string example
+8k Golang : What fmt.Println() can do and println() cannot do
+7.2k Golang : Null and nil value
+19.9k Golang : Measure http.Get() execution time
+17.5k Golang : Clone with pointer and modify value
+16.4k Golang : How to implement two-factor authentication?
+5.9k Golang : Denco multiplexer example