Documentation ¶
Index ¶
- func Add(a, b interface{}) (interface{}, error)
- func Divide(a, b interface{}) (interface{}, error)
- func Equal(a, b interface{}) (bool, error)
- func GreaterThan(a, b interface{}) (bool, error)
- func GreaterThanEqualTo(a, b interface{}) (bool, error)
- func LessThan(a, b interface{}) (bool, error)
- func LessThanEqualTo(a, b interface{}) (bool, error)
- func Match(i interface{}, pattern string) (bool, error)
- func Modulus(a, b interface{}) (int, error)
- func Multiply(a, b interface{}) (interface{}, error)
- func NotEqual(a, b interface{}) (bool, error)
- func Sub(a, b interface{}) (interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Add ¶
func Add(a, b interface{}) (interface{}, error)
Add `a + b` Supports:
- int
- float64
- string
- []interface{}
- map[string]interface{}
- fmt.Stringer
- faces.Add
- faces.Int
- faces.Float
- faces.Slice
- faces.Map
func Divide ¶
func Divide(a, b interface{}) (interface{}, error)
Divide attempts to "divide" type `b` from type `a`. Supports:
- int
- float64
- faces.Divide
- faces.Float
- faces.Int
func GreaterThan ¶
GreaterThan `a < b` Supports:
- int
- float64
- string
- []interface{}
- fmt.Stringer
- faces.Add
- faces.Int
- faces.Float
- faces.Slice
func GreaterThanEqualTo ¶
GreaterThanEqualTo `a <= b` Supports:
- int
- float64
- string
- []interface{}
- fmt.Stringer
- faces.Add
- faces.Int
- faces.Float
- faces.Slice
func LessThan ¶
LessThan `a < b` Supports:
- int
- float64
- string
- []interface{}
- fmt.Stringer
- faces.Add
- faces.Int
- faces.Float
- faces.Slice
func LessThanEqualTo ¶
LessThanEqualTo `a <= b` Supports:
- int
- float64
- string
- []interface{}
- fmt.Stringer
- faces.Add
- faces.Int
- faces.Float
- faces.Slice
func Match ¶
Match will attempt to match the given regex pattern against the given type. Supports:
- string
- int
- float64
- bool
- fmt.Stringer
- faces.Match
- faces.Int
- faces.Float
- faces.Bool
func Modulus ¶
Modulus attempts to take the "modulus" of type `a` with type `b`. Supports:
- int
- faces.Modulus
- faces.Int
func Multiply ¶
func Multiply(a, b interface{}) (interface{}, error)
Multiply attempts to "multiply" type `a` with type `b`. Supports:
- int
- float64
- faces.Multiply
- faces.Float
- faces.Int
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.