container

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get[T any](c *Container) (T, error)

func GetAll

func GetAll[T any](c *Container) ([]T, error)

func RegisterBean

func RegisterBean[T any](c *Container, constructor any, contracts ...Contract) error

func Reset

func Reset(c **Container)

func Start

func Start(c *Container) error

Types

type Container

type Container struct {
	// contains filtered or unexported fields
}

func New

func New() *Container

type Contract

type Contract struct {
	// contains filtered or unexported fields
}

func As

func As[I any]() Contract

Jump to

Keyboard shortcuts

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