Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOrSetContext ¶ added in v0.15.0
GetOrSetContext 获取Context
func SetContext ¶ added in v0.15.0
SetContext 写入上下文
func SetContextIfNotExists ¶ added in v0.15.0
SetContextIfNotExists 写入上下文(如果不存在)
Types ¶
type AsyncLocal ¶
type AsyncLocal[T any] struct { // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.