Standard library / go/token

go/token.VAR

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

Formal Syntax & Structure

go syntaxgo
const VAR Token

Working Example

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