Standard library / go/types
go/types.SendRecv
Bidirectional channel direction. Expected stdout: 'chan int\n'.
Formal Syntax & Structure
go syntaxgo
const SendRecv ChanDir = 0Working Example
Example Snippetgo
package main
import ( "fmt" "go/types")
func main() { fmt.Println(types.NewChan(types.SendRecv, types.Typ[types.Int])) }