dixglobal

package
v0.3.21-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Container

func Container() dixinternal.Container

Container returns the global container instance

func Get

func Get[T any](opts ...dixinternal.Option) T

Get retrieves an instance of the specified type

func Graph

func Graph() *dixinternal.Graph

Graph returns the dependency graph

func Inject

func Inject[T any](target T, opts ...dixinternal.Option) T

Inject injects objects

target: <*struct> or <func>

func MustGet

func MustGet[T any](opts ...dixinternal.Option) T

MustGet retrieves an instance of the specified type, panics on error

func Provide

func Provide(provider any)

Provide registers an object constructor

Types

This section is empty.

Jump to

Keyboard shortcuts

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