NewContext returns a new Context that carries value lc.
(parent context.Context, lc *LambdaContext)
| 124 | |
| 125 | // NewContext returns a new Context that carries value lc. |
| 126 | func NewContext(parent context.Context, lc *LambdaContext) context.Context { |
| 127 | return context.WithValue(parent, contextKey, lc) |
| 128 | } |
| 129 | |
| 130 | // FromContext returns the LambdaContext value stored in ctx, if any. |
| 131 | func FromContext(ctx context.Context) (*LambdaContext, bool) { |
no outgoing calls
searching dependent graphs…