Categorygithub.com/getlantern/context
modulepackage
0.0.0-20220418194847-3d5e7a086201
Repository: https://github.com/getlantern/context.git
Documentation: pkg.go.dev

# README

context Travis CI Status Coverage Status

Provides goroutine-based context state inspired by https://github.com/tylerb/gls and https://github.com/jtolds/gls. It uses the same basic hack as tylerb's library, but adds a stack abstraction that allows nested contexts similar to jtolds' library, but using Enter() and Exit() instead of callback functions.

# Functions

NewManager creates a new Manager.

# Interfaces

Context is a context containing key->value pairs.
Contextual is an interface for anything that maintains its own context.
Manager provides the ability to create and access Contexts.

# Type aliases

Map is a map of key->value pairs.