context

package
v0.18.2 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: MIT Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Background

func Background() context.Context

func Keys added in v0.1.1

func Keys() []string

func NewContextKey

func NewContextKey(name string) *contextKey

Creates new key for context.WithValue()

func Values added in v0.1.1

func Values(ctx context.Context) map[string]interface{}

func WithValue

func WithValue(ctx context.Context, key interface{}, value interface{}) context.Context

Types

type Context

type Context = context.Context

Jump to

Keyboard shortcuts

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