Standard library / go/token

go/token.CHAR

Rune literal. Token identity is distinct from the literal text returned by scanner.Scan. Expected stdout: 'CHAR\n'.

Formal Syntax & Structure

go syntaxgo
const CHAR Token

Working Example

Example Snippetgo
package main
import (  "fmt"  "go/token")
func main() { fmt.Println(token.CHAR.String()) }
Go Reference