go/ast.ChanType.Begin (field)
7 uses
go/ast (current package)
ast.go#L460: Begin token.Pos // position of "chan" keyword or "<-" (whichever comes first)
ast.go#L500: func (x *ChanType) Pos() token.Pos { return x.Begin }
go/parser
parser.go#L1028: return &ast.ChanType{Begin: pos, Arrow: arrow, Dir: dir, Value: value}
parser.go#L1572: arrow, typ.Begin, typ.Arrow = typ.Arrow, arrow, arrow
golang.org/x/pkgsite/internal/godoc
encode_ast.gen.go#L704: if x.Begin != 0 {
encode_ast.gen.go#L706: e.EncodeInt(int64(x.Begin))
encode_ast.gen.go#L741: x.Begin = token.Pos(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. |