func NewResult(code int, rule Rule, params Params, tsr bool) *Result { return &Result{ Recorder: newRecorder(), Xrroror: xrr.NewXrroror(), Code: code, Rule: rule, Params: params, TSR: tsr, } }
func emptyCtx() *ctx { return &ctx{ handlers: defaulthandlers(), Xrroror: xrr.NewXrroror(), } }