contextutils

package
v0.265.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextSilent

func ContextSilent() (ctx context.Context)

func ContextVerbose

func ContextVerbose() (ctx context.Context)

func GetVerbosityContextByBool

func GetVerbosityContextByBool(verbose bool) (ctx context.Context)

func WithVerbosityContextByBool added in v0.262.0

func WithVerbosityContextByBool(ctx context.Context, verbose bool) (ctxWithVerbosity context.Context)

Returns a child context of ctx with verbosity enabled according to `verbose`. If ctx is nil a new context with verbosity set is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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