contextx

package
v0.0.0-...-a4ecd53 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2025 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func From

func From[T any](key Key[T]) func(context.Context) *T

func With

func With[T any](key Key[T]) func(context.Context, *T) context.Context

Types

type Key

type Key[T any] struct{}

func Build

func Build[T any]() (Key[T], func(context.Context) *T, func(context.Context, *T) context.Context)

Jump to

Keyboard shortcuts

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