Rune Literals

A rune literal represents a rune constant, an integer value that identifies a Unicode code point.

Since Go's source text is UTF-8 encoded Unicode characters, multiple UTF-8 encoded bytes can represent a single integer value.

For example, the literal 'a' contains a single byte that represents a literal a, Unicode U+0061, value 0x61, while 'ä' contains two bytes (0xc3 0xa4).


fmt.Println('ä')
// Out: 228
                        
rune_literals.go