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 CtxId ¶
CtxId retrieves and returns the context id from context.
func WithCtx ¶
WithCtx creates and returns a context containing context id upon given parent context `ctx`.
func WithCtxId ¶
WithCtxId creates and returns a context containing context id upon given parent context `ctx`. The generated context id value is specified by parameter `id`.
Types ¶
Click to show internal directories.
Click to hide internal directories.