Standard library / go/token

go/token.EOF

End of source. Token identity is distinct from the literal text returned by scanner.Scan. Expected stdout: 'EOF\n'.

Formal Syntax & Structure

go syntaxgo
const EOF Token

Working Example

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