Standard library / go/token

go/token.ILLEGAL

Invalid lexical input. Token identity is distinct from the literal text returned by scanner.Scan. Expected stdout: 'ILLEGAL\n'.

Formal Syntax & Structure

go syntaxgo
const ILLEGAL Token

Working Example

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