Standard library / go/token

go/token.STRUCT

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

Formal Syntax & Structure

go syntaxgo
const STRUCT Token

Working Example

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