Versions in this module Expand all Collapse all v1 v1.2.4 Jun 5, 2018 v1.2.3 Aug 18, 2017 v1.2.2 Aug 8, 2017 v1.2.1 Aug 3, 2017 Changes in this version + type FilterError struct + Err error + FilterName string + func (e FilterError) Error() string v1.1.2 Jul 20, 2017 Changes in this version + type SyntaxError string + func (e SyntaxError) Error() string v1.1.1 Jul 17, 2017 v1.1.0 Jul 16, 2017 Changes in this version + const DOTDOT v1.0.0 Jul 16, 2017 Changes in this version + const AND + const ASSIGN + const AssignStatementSelector + const CONTAINS + const CYCLE + const CycleStatementSelector + const EQ + const GE + const IDENTIFIER + const IN + const KEYWORD + const LE + const LITERAL + const LOOP + const LoopStatementSelector + const NEQ + const OR + const PROPERTY + const WHEN + const WhenStatementSelector + func EvaluateString(source string, ctx Context) (interface{}, error) + func ToLiquid(value interface{}) interface + type Assignment struct + ValueFn Expression + Variable string + type Closure interface + Bind func(name string, value interface{}) Closure + Evaluate func() (interface{}, error) + type Config struct + func NewConfig() Config + func (c *Config) AddFilter(name string, fn interface{}) + type Context interface + ApplyFilter func(string, valueFn, []valueFn) interface{} + Clone func() Context + Get func(string) interface{} + Set func(string, interface{}) + func NewContext(vars map[string]interface{}, cfg Config) Context + type Cycle struct + Group string + Values []string + type Expression interface + Evaluate func(ctx Context) (interface{}, error) + func Constant(k interface{}) Expression + func Not(e Expression) Expression + func Parse(source string) (expr Expression, err error) + type InterpreterError string + func (e InterpreterError) Error() string + type Loop struct + Expr Expression + Variable string + type ParseError string + func (e ParseError) Error() string + type Statement struct + func ParseStatement(sel, source string) (*Statement, error) + type UndefinedFilter string + func (e UndefinedFilter) Error() string + type When struct + Exprs []Expression