Standard library / go/token

go/token.IMPORT

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

Formal Syntax & Structure

go syntaxgo
const IMPORT Token

Working Example

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