contexts

package
v2.13.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Chain

func Chain(ctx context.Context, fns ...Func) (context.Context, error)

Chain is a reverse Pipe.

func MustValue added in v2.11.0

func MustValue[T any](ctx context.Context, key any) T

func Pipe

func Pipe(ctx context.Context, fns ...Func) (context.Context, error)

Pipe returns a Provider that chains the provided Providers.

func Value added in v2.11.0

func Value[T any](ctx context.Context, key any) (T, bool)

Types

type Func

type Func func(ctx context.Context) (context.Context, error)

Jump to

Keyboard shortcuts

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