ToTitle maps the rune to title case.
package main import ( "fmt" "unicode" ) func main() { const ucG = 'g' fmt.Printf("%#U\n", unicode.ToTitle(ucG)) }