go/ast.ChanType.Dir (field)
9 uses
go/ast (current package)
ast.go#L462: Dir ChanDir // channel direction
go/parser
parser.go#L1028: return &ast.ChanType{Begin: pos, Arrow: arrow, Dir: dir, Value: value}
parser.go#L1568: if typ.Dir == ast.RECV {
parser.go#L1573: dir, typ.Dir = typ.Dir, ast.RECV
go/printer
nodes.go#L961: switch x.Dir {
golang.org/x/pkgsite/internal/godoc
encode_ast.gen.go#L712: if x.Dir != 0 {
encode_ast.gen.go#L714: e.EncodeInt(int64(x.Dir))
encode_ast.gen.go#L745: x.Dir = ast.ChanDir(d.DecodeInt())
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |