Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromContext ¶
func FromContext[K comparable, V any](ctx context.Context, key K) (V, bool)
FromContext returns the value associated with the given key in the context, or nil if no value is associated with the key.
func NewContext ¶
NewContext returns a new Context that carries value.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.