Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context[T any] interface { Inject(ctx context.Context, v T) context.Context Extract(ctx context.Context) T }
func New ¶
func New[T any](optFuncs ...ContextOptFunc[T]) Context[T]
type ContextOptFunc ¶
type ContextOptFunc[T any] func(opt *ctx[T])
func Defaulter ¶
func Defaulter[T any](d func() T) ContextOptFunc[T]
Click to show internal directories.
Click to hide internal directories.