Documentation ¶
Index ¶
- Variables
- func Assign[T any](scope Scope, ptr *T)
- func Get[T any](scope Scope) (o T)
- func Methods(objects ...any) (ret []any)
- func PtrTo[T any](value T) *T
- func Reduce(vs []reflect.Value) reflect.Value
- type CallResult
- type CowMap
- type CustomReducer
- type DebugInfo
- type Path
- type Reducer
- type Scope
- func (scope Scope) Assign(objs ...any)
- func (scope Scope) Call(fn any) CallResult
- func (scope Scope) CallValue(fnValue reflect.Value) (res CallResult)
- func (scope Scope) Fork(defs ...any) Scope
- func (scope Scope) Get(t reflect.Type) (ret reflect.Value, err error)
- func (s Scope) GetDebugInfo() (info DebugInfo)
- type ValueDebugInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBadArgument = errors.New("bad argument")
View Source
var ErrBadDefinition = errors.New("bad definition")
View Source
var ErrDependencyLoop = errors.New("dependency loop")
View Source
var ErrDependencyNotFound = errors.New("dependency not found")
View Source
var ErrNoValues = errors.New("no values")
View Source
var Universe = Scope{}
Functions ¶
Types ¶
type CallResult ¶
func (CallResult) Assign ¶
func (c CallResult) Assign(targets ...any)
func (CallResult) Extract ¶
func (c CallResult) Extract(targets ...any)
type CowMap ¶
type CowMap[K comparable, V any] struct { // contains filtered or unexported fields }
func NewCowMap ¶
func NewCowMap[K comparable, V any]() *CowMap[K, V]
type DebugInfo ¶
type DebugInfo struct {
Values map[reflect.Type]ValueDebugInfo
}
type Scope ¶
type Scope struct {
// contains filtered or unexported fields
}
func (Scope) Call ¶
func (scope Scope) Call(fn any) CallResult
func (Scope) GetDebugInfo ¶
type ValueDebugInfo ¶
Click to show internal directories.
Click to hide internal directories.