ctor

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValid

func IsValid(provider interface{}) (err error)

IsValid

Types

type Option

type Option func(provider *Provider)

Option

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

Provider

func New

func New(rawProvider interface{}, options ...Option) (*Provider, error)

New

func (*Provider) Arguments

func (p *Provider) Arguments() (args []provider.Key)

func (*Provider) Provide

func (p *Provider) Provide(arguments []reflect.Value) (reflect.Value, error)

func (*Provider) ResultType

func (p *Provider) ResultType() reflect.Type

func (*Provider) String

func (p *Provider) String() string

Jump to

Keyboard shortcuts

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