Standard library / unicode
unicode.SimpleFold()
Returns the next rune in the Unicode simple case-fold equivalence cycle, or the input if no equivalent exists. Expected stdout: 'a\n'.
Formal Syntax & Structure
go syntaxgo
func SimpleFold(r rune) runeParameters & Attributes
| Name | Type | Description |
|---|---|---|
| r | rune | Unicode code point. |
Return Value
rune
Returns the next rune in the Unicode simple case-fold equivalence cycle, or the input if no equivalent exists.
Working Example
Example Snippetgo
package main
import ( "fmt" "unicode")
func main() { fmt.Println(string(unicode.SimpleFold('A')))}