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