Standard library / go/token

go/token.PACKAGE

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

Formal Syntax & Structure

go syntaxgo
const PACKAGE Token

Working Example

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