ctxz

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(ctx context.Context, key any) bool

Bool returns the bool value for the given key.

func Float64

func Float64(ctx context.Context, key any) float64

Float64 returns the float64 value for the given key.

func Int

func Int(ctx context.Context, key any) int

Int returns the int value for the given key.

func Int64

func Int64(ctx context.Context, key any) int64

Int64 returns the int64 value for the given key.

func String

func String(ctx context.Context, key any) string

String returns the string value for the given key.

func WithoutCancel

func WithoutCancel(ctx context.Context) (valueOnlyContext context.Context)

WithoutCancel returns a copy of the parent context that never cancels.

Types

This section is empty.

Jump to

Keyboard shortcuts

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