Golang unicode.ToLower() function example

package unicode

Golang unicode.ToLower() function usage example

 package main

 import (
 "fmt"
 "unicode"
 )

 func main() {

 LowerCaseRune := unicode.ToLower('A')
 fmt.Printf("%+q\n", LowerCaseRune)
 }

Output :

'a'

Reference :

https://golang.org/pkg/unicode/#ToLower

Advertisement