diingo

package module
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2022 License: Unlicense Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const CyclicDependency = "cyclic dependency '%s'"
View Source
const MissingDependency = "missing dependency '%s'"
View Source
const UnableToResolveDependency = "unable to resolve dependency '%s'"
View Source
const UnableToResolveDependencyCause = "unable to resolve dependency '%s': %s"

Variables

This section is empty.

Functions

func LoadDependencies added in v0.4.0

func LoadDependencies[T any](obj *T, providers ...any) error

Types

type Provider added in v0.4.0

type Provider[T any] interface {
	ProviderFunc[any] | ProviderFuncWithError[any]
}

type ProviderFunc added in v0.4.0

type ProviderFunc[T any] func(dependencies ...any) T

type ProviderFuncWithError added in v0.4.0

type ProviderFuncWithError[T any] func(dependencies ...any) (T, error)

Jump to

Keyboard shortcuts

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