NewContext creates a new *Context object.
()
| 14 | |
| 15 | // NewContext creates a new *Context object. |
| 16 | func NewContext() *Context { |
| 17 | return &Context{} |
| 18 | } |
| 19 | |
| 20 | // Error sets this context to an error state with the given message. |
| 21 | func (ctx *Context) Error(msg string) { |
no outgoing calls