when

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Evaluate

func Evaluate(program string, env interface{}) interface{}

Evaluate returns the raw result of the evaluated program.

func False

func False(program string, env interface{}) bool

False checks that the program provided evaluates to false.

func ImplicitlyFalse

func ImplicitlyFalse(program string) bool

ImplicitlyFalse checks if the value is implicitly false based the string representation.

func ImplicitlyTrue

func ImplicitlyTrue(program string) bool

ImplicitlyTrue checks if the value is implicitly true based the string representation.

func True

func True(program string, env interface{}) bool

True checks that the program provided evaluates to true.

Types

This section is empty.

Jump to

Keyboard shortcuts

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