context

package
v1.4.5-alpha1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2019 License: MPL-2.0 Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL