Standard library / go/token
go/token.TYPE
Keyword 'type'. Token identity is distinct from the literal text returned by scanner.Scan. Expected stdout: 'type\n'.
Formal Syntax & Structure
go syntaxgo
const TYPE TokenWorking Example
Example Snippetgo
package main
import ( "fmt" "go/token")
func main() { fmt.Println(token.TYPE.String()) }