Standard library / go/token
go/token.IF
Keyword 'if'. Token identity is distinct from the literal text returned by scanner.Scan. Expected stdout: 'if\n'.
Formal Syntax & Structure
go syntaxgo
const IF TokenWorking Example
Example Snippetgo
package main
import ( "fmt" "go/token")
func main() { fmt.Println(token.IF.String()) }