ToUpper in Go

Posted by GoDoc
Public (Editable by Users)

ToUpper maps the rune to upper case.

Go
Edit
package main

import (
	"fmt"
	"unicode"
)

func main() {
	const ucG = 'g'
	fmt.Printf("%#U\n", unicode.ToUpper(ucG))
}