ast

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const False = Bool(false)
View Source
const True = Bool(true)

Variables

This section is empty.

Functions

This section is empty.

Types

type And

type And struct {
	Left, Right Node
}

func (And) String

func (n And) String() string

func (And) Transform

func (n And) Transform(cb Cb) Node

type Binary

type Binary interface {
	LeftRight() (Node, Node)
}

type Bool

type Bool bool

func (Bool) And

func (n Bool) And(o Bool) Node

func (Bool) String

func (n Bool) String() string

func (Bool) Transform

func (n Bool) Transform(cb Cb) Node

type Cb

type Cb func(Node) Node

type Contains

type Contains struct {
	Left, Right Node
}

func (Contains) LeftRight

func (n Contains) LeftRight() (Node, Node)

func (Contains) String

func (n Contains) String() string

func (Contains) Transform

func (n Contains) Transform(cb Cb) Node

type Duration

type Duration time.Duration

func (Duration) Transform

func (n Duration) Transform(cb Cb) Node

type Equals

type Equals struct {
	Left, Right Node
}

func (Equals) LeftRight

func (n Equals) LeftRight() (Node, Node)

func (Equals) String

func (n Equals) String() string

func (Equals) Transform

func (n Equals) Transform(cb Cb) Node

type GreaterThan

type GreaterThan struct {
	Left, Right Node
}

func (GreaterThan) LeftRight

func (n GreaterThan) LeftRight() (Node, Node)

func (GreaterThan) String

func (n GreaterThan) String() string

func (GreaterThan) Transform

func (n GreaterThan) Transform(cb Cb) Node

type Ident

type Ident string

func (Ident) String

func (n Ident) String() string

func (Ident) Transform

func (n Ident) Transform(cb Cb) Node

type LessThan

type LessThan struct {
	Left, Right Node
}

func (LessThan) LeftRight

func (n LessThan) LeftRight() (Node, Node)

func (LessThan) String

func (n LessThan) String() string

func (LessThan) Transform

func (n LessThan) Transform(cb Cb) Node

type Node

type Node interface {
	Transform(cb Cb) Node
}

type Not

type Not struct {
	Left Node
}

func (Not) String

func (n Not) String() string

func (Not) Transform

func (n Not) Transform(cb Cb) Node

type Number

type Number float64

func (Number) String

func (n Number) String() string

func (Number) Transform

func (n Number) Transform(cb Cb) Node

type Or

type Or struct {
	Left, Right Node
}

func (Or) String

func (n Or) String() string

func (Or) Transform

func (n Or) Transform(cb Cb) Node

type OrderBy

type OrderBy struct {
	Ident string
	Asc   bool
}

type Query

type Query struct {
	Filter Node
	Sort   Sort
	Limit  int
}

func (Query) Transform

func (n Query) Transform(cb Cb) Node

type Sort

type Sort []OrderBy

type String

type String string

func (String) String

func (n String) String() string

func (String) Transform

func (n String) Transform(cb Cb) Node

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL