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: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Concrete

type Concrete func(container Container) interface{}

type Container

type Container interface {
	Has(id string) bool
	Get(id string) (interface{}, error)
	MustGet(id string) interface{}

	Bind(name string, concrete Concrete, shared bool)
	Singleton(name string, concrete Concrete)
	Instance(name string, instance interface{})
	Make(name string, value interface{}) error
}

Jump to

Keyboard shortcuts

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