Documentation ¶
Index ¶
- func Cancel() context.Context
- type Context
- func (ctx *Context) Json() []byte
- func (ctx *Context) String() string
- func (ctx *Context) Value(key string) any
- func (ctx *Context) Values() map[string]any
- func (ctx *Context) WithLog() *Context
- func (ctx *Context) WithParent(parent context.Context) *Context
- func (ctx *Context) WithValue(key string, value any) *Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Context ¶ added in v1.2.145
上下文
func WithCancel ¶ added in v1.2.145
func WithCancel() *Context
func WithParent ¶ added in v1.2.145
func (*Context) WithParent ¶ added in v1.2.145
Click to show internal directories.
Click to hide internal directories.