Standard library / unicode

unicode.ToLower()

Returns the lowercase mapping of a rune, or the rune itself if none. Expected stdout: 'a\n'.

Formal Syntax & Structure

go syntaxgo
func ToLower(r rune) rune

Parameters & Attributes

NameTypeDescription
rruneUnicode code point.

Return Value

rune

Returns the lowercase mapping of a rune, or the rune itself if none.

Working Example

Example Snippetgo
package main
import (  "fmt"  "unicode")
func main() {  fmt.Println(string(unicode.ToLower('A')))}
Go Reference