Motivation
Throughout the Go monorepo we use context.WithValue()
to "stash" a global
value on a root context. For example
ctx = logger.WithLogger(ctx, log)
// ... later ...
log := logger.GetLogger(ctx)
The implementations for stashing a logger.Log
are in the same general form
as most context wrapping helpers:
type loggerKey …