Standard library / go/token

go/token.CHAN

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

Formal Syntax & Structure

go syntaxgo
const CHAN Token

Working Example

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