Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FieldName ¶
func FieldName(field reflect.StructField) string
Types ¶
type Config ¶
type Config struct { Env any Types TypesTable MapEnv bool DefaultType reflect.Type Expect reflect.Kind ExpectAny bool Optimize bool Strict bool Profile bool ConstFns map[string]reflect.Value Visitors []ast.Visitor Functions FunctionsTable Builtins FunctionsTable Disabled map[string]bool // disabled builtins }
func (*Config) IsOverridden ¶ added in v1.16.0
type FunctionsTable ¶ added in v1.16.1
type TypesTable ¶
func CreateTypesTable ¶
func CreateTypesTable(i any) 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.