Documentation ¶
Overview ¶
Package pattern provides tools for creating and executing functions with guards. See also: https://github.com/ionous/iffy/wiki/Patterns
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitRecord ¶
func InitRecord(run rt.Runtime, k *rt.Kind, keys []string, vals []rt.Value) (ret *rt.Record, err error)
InitRecord fill the passed record with the arguments named by keys and values keys, if any, must match the order of fields in the kind ( but don't need to be contiguous. ) if there are more values than keys, the first values are treated as indexed values; having fewer values than keys is invalid.
Types ¶
type Category ¶
type Category int
const ( Initializes Category // some sort of record Calls // some sort of callable pattern Sends // some sort of pattern action Listens )
type FieldInit ¶
type FieldInit struct { Field string Init rt.Assignment }
Click to show internal directories.
Click to hide internal directories.