Standard library / unicode

unicode.IsTitle()

Tests titlecase letter category Lt. Expected stdout: 'true\n'.

Formal Syntax & Structure

go syntaxgo
func IsTitle(r rune) bool

Parameters & Attributes

NameTypeDescription
rruneUnicode code point.

Return Value

bool

Tests titlecase letter category Lt.

Working Example

Example Snippetgo
package main
import (  "fmt"  "unicode")
func main() {  fmt.Println(unicode.IsTitle('Dž'))}
Go Reference