clidi

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddProvider

func AddProvider(ctx context.Context, f any, opts ...dig.ProvideOption)

AddProvider provides a function f to the list of DI providers set in the DI container.

func InitializeContainer

func InitializeContainer(ctx context.Context, opts ...dig.Option)

InitializeContainer creates the DI container and sets it in the context.

func Invoke

func Invoke(ctx context.Context, f any, opts ...dig.InvokeOption) error

Invoke uses previously provided functions (through AddProvider) to initialize function f.

Types

type In

type In = dig.In

In alias dig.In to have only one import for DI in most case.

type Out

type Out = dig.Out

Out alias dig.Out to have only one import for DI in most case.

Jump to

Keyboard shortcuts

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