Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { MapEnv bool Types TypesTable CheckTypes bool Operators OperatorsTable Expect reflect.Kind Optimize bool AllowUndefinedVariables bool }
type OperatorsTable ¶
OperatorsTable maps binary operators to corresponding list of functions. Functions should be provided in the environment to allow operator overloading.
type TypesTable ¶
func CreateTypesTable ¶
func CreateTypesTable(i interface{}) TypesTable
CreateTypesTable creates types table for type checks during parsing. If struct is passed, all fields will be treated as variables, as well as all fields of embedded structs and struct itself.
If map is passed, all items will be treated as variables (key as name, value as type).
func FieldsFromStruct ¶
func FieldsFromStruct(t reflect.Type) TypesTable
Click to show internal directories.
Click to hide internal directories.