Standard library / go/token

go/token.DEFER

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

Formal Syntax & Structure

go syntaxgo
const DEFER Token

Working Example

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