Standard library / go/ast

go/ast.RECV

Channel direction flag for receiving; bidirectional channel types combine both flags. Expected stdout: 'true\n'.

Formal Syntax & Structure

go syntaxgo
const RECV ChanDir

Working Example

Example Snippetgo
package main
import (  "fmt"  "go/ast")
func main() { fmt.Println((ast.SEND|ast.RECV)&ast.RECV != 0) }
Go Reference