Standard library / go/token

go/token.FOR

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

Formal Syntax & Structure

go syntaxgo
const FOR Token

Working Example

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