Standard library / go/token

go/token.IDENT

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

Formal Syntax & Structure

go syntaxgo
const IDENT Token

Working Example

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