Standard library / go/ast

go/ast.SEND

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

Formal Syntax & Structure

go syntaxgo
const SEND ChanDir

Working Example

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