Literal

Rune literals

A rune literal denotes an integer constant with default type rune (int32). It contains one character or permitted escape rather than an arbitrary string. Example output: '65 955 10'.

Formal Syntax & Structure

go syntaxgo
'A'; '\u03bb'; '\n'

Working Example

Example Snippetgo
package main
import "fmt"
func main() {  fmt.Println('A', '\u03bb', '\n')}
Go Reference