type go/ast.byPos
5 uses
go/ast (current package)
commentmap.go#L14: type byPos []*CommentGroup
commentmap.go#L16: func (a byPos) Len() int { return len(a) }
commentmap.go#L17: func (a byPos) Less(i, j int) bool { return a[i].Pos() < a[j].Pos() }
commentmap.go#L18: func (a byPos) Swap(i, j int) { a[i], a[j] = a[j], a[i] }
commentmap.go#L26: if orderedList := byPos(list); !sort.IsSorted(orderedList) {
![]() |
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. |