Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetContext ¶
func GetContext() map[string]interface{}
GetContext - returns context assigned to current call-stack, or nil if no context
func MakeContext ¶
func MakeContext(target func())
MakeContext encodes new context index in current call-stack and then executes given target
- so, all the internal routine within target func, and sub-calls will have own context
- context is a map[string]interface{} where you can store any information
- context map will be eliminated automatically after target func finish
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.