Documentation
¶
Index ¶
- func Filter(parent HasElements, ...) (shortCircuit bool)
- func FindAll[T any](parent asciidoc.HasElements) iter.Seq[T]
- func FindFirst[T any](parent asciidoc.HasElements) T
- func HexOrDec(s string) (uint64, error)
- func Position(el asciidoc.Element) string
- func Skim[T any](elements asciidoc.Set) iter.Seq[T]
- func SkimFunc[T any](elements asciidoc.Set, callback func(t T) bool) bool
- func SkimList[T any](elements asciidoc.Set) []T
- func Traverse[T any](parent HasElements, els asciidoc.Set, callback TraverseCallback[T])
- type HasElements
- type SearchShould
- type TraverseCallback
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Filter ¶
func Filter(parent HasElements, callback func(parent HasElements, el asciidoc.Element) (remove bool, replace asciidoc.Set, shortCircuit bool)) (shortCircuit bool)
func FindFirst ¶
func FindFirst[T any](parent asciidoc.HasElements) T
func Traverse ¶
func Traverse[T any](parent HasElements, els asciidoc.Set, callback TraverseCallback[T])
Types ¶
type SearchShould ¶
type SearchShould uint8
const ( SearchShouldContinue SearchShould = iota SearchShouldStop SearchShouldSkip )
type TraverseCallback ¶
type TraverseCallback[T any] func(el T, parent HasElements, index int) SearchShould
Click to show internal directories.
Click to hide internal directories.