fi

package
v0.0.0-...-f61b284 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFI

func GetFI[T any](ctx context.Context) T

func UpdateContextFI

func UpdateContextFI[T any](ctx context.Context, f func(T) T) context.Context

func WrapContextFI

func WrapContextFI[T any](ctx context.Context, fi T) context.Context

Types

type ContextKey

type ContextKey string
const Key ContextKey = "func-injection"

type FI

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

func (FI) IsValid

func (fi FI) IsValid() bool

func (FI) SetValid

func (fi FI) SetValid()

Jump to

Keyboard shortcuts

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