# set value
child_ctx = context.WithValue(parent_ctx, key, value)
# get value
value = ctx.Value(key)
# key and value are interface
context in golang
Kiyor
2017年01月21日 02:39
Updated on 2017年01月24日