query

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Evaler

type Evaler struct {
	// contains filtered or unexported fields
}

func NewEvaler

func NewEvaler(vars []Variable) *Evaler

func (*Evaler) Eval

func (e *Evaler) Eval(query string) (evaled string)

Eval takes a query and evaluates it using vars

func (*Evaler) ExtractVariables

func (e *Evaler) ExtractVariables(query string) (variables []Variable)

Eval takes a query and returns the used query variables

type Variable

type Variable struct {
	Name  string
	Value string
}

Variable maps a single query variable

Jump to

Keyboard shortcuts

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