README ¶ valToArray Overview Description Casts single value to array or array of arrays of given shape Implementation details A recursive function for each element of the shape array. Compliance to Spec Rough level of compliance 100% Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func New(ctx operation.InitContext) (operation.Operation, error) type Input func (i *Input) FromMap(values map[string]interface{}) error type Operation func (a *Operation) Eval(inputs map[string]interface{}) (interface{}, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func New ¶ added in v0.2.1 func New(ctx operation.InitContext) (operation.Operation, error) Types ¶ type Input ¶ type Input struct { Value interface{} `md:"value"` Shape []interface{} `md:"shape"` } func (*Input) FromMap ¶ func (i *Input) FromMap(values map[string]interface{}) error type Operation ¶ type Operation struct { // contains filtered or unexported fields } func (*Operation) Eval ¶ func (a *Operation) Eval(inputs map[string]interface{}) (interface{}, error) Source Files ¶ View all Source files metadata.go operation.go Click to show internal directories. Click to hide internal directories.