inject

package
v0.1.27 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Inject

func Inject(val interface{})

func Register

func Register(typ interface{}, fn func(obj Object, field Field) (interface{}, bool))

func WithVal

func WithVal(val interface{}) func(obj Object, field Field) (interface{}, bool)

Types

type Field

type Field struct {
	Field reflect.StructField
	// contains filtered or unexported fields
}

func (Field) Name

func (f Field) Name() string

func (Field) Tag

func (f Field) Tag(name string) string

func (Field) Type

func (f Field) Type() string

type Object

type Object struct {
	Value reflect.Value
}

func (Object) Name

func (o Object) Name() string

func (Object) Type

func (o Object) Type() string

Jump to

Keyboard shortcuts

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