package
0.0.0-20240605110052-2016107581da
Repository: https://github.com/grafana/thema.git
Documentation: pkg.go.dev

# Functions

AppendSplit recursively splits an expression in a single cue.Value by a single operation, flattening it into the slice of cue.Value that are joined by the provided operation in the input value.
Equal reports nil when the two cue values subsume each other or an error otherwise.
FirstNonThemaPos returns the first [token.Pos] in the slice returned by PoslistWithoutThema, or [token.NoPos] if no such pos exists.
LastSelectorEq tests whether the final selector in the provided path is equivalent to the provided selector.
PathHasPrefix tests whether the [cue.Path] p begins with prefix.
PathsAreEq tests whether two [cue.Path] are equivalent.
PoslistWithoutThema returns all token.Pos associated with a given cue.Value, omitting any token.Pos that point to thema.
PrintPosList dumps the cue.Value.Pos for each unified element of the provided cue.Value.
ReplacePathPrefix replaces oldprefix with newprefix if p begins with oldprefix.
SelEq indicates whether two selectors are equivalent.
TrimPathPrefix strips the provided prefix from the provided path, if the prefix exists.