ToUpper in Go

Posted by GoDoc
Public (Editable by Users)

ToUpper returns a copy of the byte slice s with all Unicode letters mapped to their upper case.

Go
Edit
package main

import (
	"bytes"
	"fmt"
)

func main() {
	fmt.Printf("%s", bytes.ToUpper([]byte("Gopher")))
}