inject

package
v0.0.0-...-0dfd57a Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package inject provides a simple dependency injector.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Injector

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

func NewInjector

func NewInjector() *Injector

func (*Injector) Create

func (in *Injector) Create(factory interface{}) (interface{}, error)

func (*Injector) Factory

func (in *Injector) Factory(factory interface{})

func (*Injector) Inject

func (in *Injector) Inject(container interface{}) error

func (*Injector) Instance

func (in *Injector) Instance(instance interface{})

Jump to

Keyboard shortcuts

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