Standard library / go/token

go/token.GOTO

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

Formal Syntax & Structure

go syntaxgo
const GOTO Token

Working Example

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