myinject

package
v0.0.0-...-fe5d015 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InterfaceOf

func InterfaceOf(value interface{}) reflect.Type

Types

type Applicator

type Applicator interface {
	Apply(interface{}) error
}

type Injector

type Injector interface {
	Applicator
	Invoker
	TypeMapper

	SetParent(Injector)
}

func New

func New() Injector

type Invoker

type Invoker interface {
	Invoke(interface{}) ([]reflect.Value, error)
}

type TypeMapper

type TypeMapper interface {
	Map(interface{}) TypeMapper
	MapTo(interface{}, interface{}) TypeMapper
	Set(reflect.Type, reflect.Value) TypeMapper
	Get(reflect.Type) reflect.Value
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL