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 v1.1.2 Jul 20, 2017 v1.1.1 Jul 17, 2017 v1.1.0 Jul 16, 2017 v1.0.0 Jul 16, 2017 Changes in this version + func ToLiquid(value interface{}) interface + type ParseError string + func (e ParseError) Error() string v0 v0.1.1 Jul 1, 2020 Changes in this version + const AND + const ASSIGN + const AssignStatementSelector + const CONTAINS + const CYCLE + const CycleStatementSelector + const DOTDOT + 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) + type Assignment struct + ValueFn Expression + Variable string + type Closure interface + Bind func(name string, value interface{}) Closure + Evaluate func() (interface{}, error) + type Config struct + FilterErrorMode UndefinedFilterHandler + VariableErrorMode UndefinedVariableHandler + func NewConfig() Config + func (c *Config) AddFilter(name string, fn interface{}) + func (c *Config) GetFilter(name string) interface{} + func (c *Config) GetVariable(bindings map[string]interface{}, name string) interface{} + type Context interface + ApplyFilter func(string, valueFn, []valueFn) (interface{}, error) + 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 FilterError struct + Err error + FilterName string + func (e FilterError) Error() string + type InterpreterError string + func (e InterpreterError) Error() string + type LaxMode struct + func (mode LaxMode) OnUndefinedFilter(name string) interface{} + func (mode LaxMode) OnUndefinedVariable(name string) interface{} + type Loop struct + Expr Expression + Variable string + type Statement struct + func ParseStatement(sel, source string) (*Statement, error) + type StrictMode struct + func (mode StrictMode) OnUndefinedFilter(name string) interface{} + func (mode StrictMode) OnUndefinedVariable(name string) interface{} + type SyntaxError string + func (e SyntaxError) Error() string + type UndefinedFilter string + func (e UndefinedFilter) Error() string + type UndefinedFilterHandler interface + OnUndefinedFilter func(name string) interface{} + type UndefinedVariable string + func (e UndefinedVariable) Error() string + type UndefinedVariableHandler interface + OnUndefinedVariable func(name string) interface{} + type When struct + Exprs []Expression Other modules containing this package github.com/etecs-ru/liquid/v2