Standard library / go/token
go/token.Token
Enumeration representing Go lexical categories. Expected stdout: 'func\n'.
Formal Syntax & Structure
go syntaxgo
type Token intWorking Example
Example Snippetgo
package main
import ( "fmt" "go/token")
func main() { var t token.Token = token.FUNC; fmt.Println(t) }