Documentation
¶
Overview ¶
Package predicate allows to build and manipulate BadWolf predicates.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Predicate ¶
type Predicate struct {
// contains filtered or unexported fields
}
Predicate represents a BadWolf predicate.
func NewImmutable ¶
NewImmutable creates a new immutable predicate.
func NewTemporal ¶
NewTemporal creates a new temporal predicate.
func Parse ¶
Parse converts a pretty printed predicate into a predicate.
func (*Predicate) String ¶
String returns the pretty printed version of the predicate.
func (*Predicate) TimeAnchor ¶
TimeAnchor attempts to return the time anchor of a predicate if its type is temporal.
Source Files
¶
- predicate.go
Click to show internal directories.
Click to hide internal directories.