context

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 2 more Imports: 1 Imported by: 0

Documentation

Overview

Package context provides extensions to context.Context.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewContextWithValues

func NewContextWithValues(ctx, valuesCtx context.Context) context.Context

NewContextWithValues will use the valuesCtx's Value function. Effects of the returned context:

Whether it has timed out or canceled: decided by ctx.
Retrieve value using key: first use valuesCtx.Value, then ctx.Value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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