WithValue adds custom state variables to the runtime context.
(key string, value interface{})
| 52 | |
| 53 | // WithValue adds custom state variables to the runtime context. |
| 54 | func (r *Runtime) WithValue(key string, value interface{}) *Runtime { |
| 55 | r.ctx[key] = value |
| 56 | |
| 57 | return r |
| 58 | } |
| 59 | |
| 60 | // Value returns a state variable in the runtime context. |
| 61 | func (r *Runtime) Value(key string) interface{} { |
no outgoing calls
no test coverage detected