injector

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container map[reflect.Type]interface{}

func NewContainer

func NewContainer() Container

func (Container) Bind

func (c Container) Bind(entity interface{})

func (Container) Resolve

func (c Container) Resolve(entity interface{}) interface{}

func (Container) ResolveOrPanic added in v0.5.1

func (c Container) ResolveOrPanic(entity interface{}) interface{}

Jump to

Keyboard shortcuts

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