Documentation ¶
Overview ¶
Package gctx wraps context.Context and provides extra context features.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithCtx ¶
WithCtx creates and returns a context containing context id upon given parent context `ctx`.
func WithPrefix ¶
WithPrefix creates and returns a context containing context id upon given parent context `ctx`. The generated context id has custom prefix string specified by parameter `prefix`.
Types ¶
Click to show internal directories.
Click to hide internal directories.