Documentation ¶
Index ¶
- func MakeFieldsFromTraits(ts []string) (ret []rt.Field)
- func SetRecord(d *rt.Record, pairs ...any) (err error)
- func ValueOf(i any) (ret rt.Value, err error)
- type FieldMap
- type KindBuilder
- type KindMap
- type Kinds
- type Objects
- type PanicRuntime
- func (PanicRuntime) ActivateDomain(name string) error
- func (PanicRuntime) Call(string, affine.Affinity, []string, []rt.Value) (rt.Value, error)
- func (PanicRuntime) GetField(target, field string) (rt.Value, error)
- func (PanicRuntime) GetKindByName(string) (*rt.Kind, error)
- func (PanicRuntime) PluralOf(single string) string
- func (PanicRuntime) PopScope()
- func (PanicRuntime) PushScope(rt.Scope)
- func (PanicRuntime) Random(inclusiveMin, exclusiveMax int) int
- func (PanicRuntime) ReciprocalsOf(a, relation string) (rt.Value, error)
- func (PanicRuntime) RelateTo(a, b, relation string) error
- func (PanicRuntime) RelativesOf(a, relation string) (rt.Value, error)
- func (PanicRuntime) SetField(target, field string, v rt.Value) error
- func (PanicRuntime) SetWriter(io.Writer) io.Writer
- func (PanicRuntime) SingularOf(plural string) string
- func (PanicRuntime) Writer() io.Writer
- type ParentMap
- type Runtime
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeFieldsFromTraits ¶
Types ¶
type KindBuilder ¶
type Kinds ¶
type Kinds struct { Kinds KindMap // stores completed kinds Builder KindBuilder }
func (*Kinds) AddKinds ¶
register kinds from a struct using reflection note: this doesnt actually create the kinds.... it preps them for use -- they are created on Get()
func (*Kinds) GetKindByName ¶
return a kind ( declared via AddKinds ) or error if it doesnt exist.
type Objects ¶
nouns in the test runtime are represented by records
type PanicRuntime ¶
type PanicRuntime struct{}
PanicRuntime implements Runtime throwing a panic for every method
func (PanicRuntime) ActivateDomain ¶
func (PanicRuntime) ActivateDomain(name string) error
func (PanicRuntime) GetKindByName ¶
func (PanicRuntime) GetKindByName(string) (*rt.Kind, error)
func (PanicRuntime) PluralOf ¶
func (PanicRuntime) PluralOf(single string) string
func (PanicRuntime) PopScope ¶
func (PanicRuntime) PopScope()
func (PanicRuntime) PushScope ¶
func (PanicRuntime) PushScope(rt.Scope)
func (PanicRuntime) Random ¶
func (PanicRuntime) Random(inclusiveMin, exclusiveMax int) int
func (PanicRuntime) ReciprocalsOf ¶
func (PanicRuntime) ReciprocalsOf(a, relation string) (rt.Value, error)
func (PanicRuntime) RelateTo ¶
func (PanicRuntime) RelateTo(a, b, relation string) error
func (PanicRuntime) RelativesOf ¶
func (PanicRuntime) RelativesOf(a, relation string) (rt.Value, error)
func (PanicRuntime) SingularOf ¶
func (PanicRuntime) SingularOf(plural string) string
func (PanicRuntime) Writer ¶
func (PanicRuntime) Writer() io.Writer
Click to show internal directories.
Click to hide internal directories.