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) runeParameters & Attributes
| Name | Type | Description |
|---|---|---|
| r | rune | Unicode 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')))}