container

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: MIT Imports: 4 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 struct {
	// contains filtered or unexported fields
}

func NewContainer

func NewContainer() *Container

func (*Container) Bind

func (c *Container) Bind(name string, concrete container.Concrete, shared bool)

func (*Container) Get

func (c *Container) Get(id string) (interface{}, error)

func (*Container) Has

func (c *Container) Has(id string) bool

func (*Container) Instance

func (c *Container) Instance(name string, instance interface{})

func (*Container) Make

func (c *Container) Make(name string, value interface{}) error

func (*Container) MustGet added in v0.3.0

func (c *Container) MustGet(id string) interface{}

func (*Container) Singleton

func (c *Container) Singleton(name string, concrete container.Concrete)

Jump to

Keyboard shortcuts

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