Esempio n. 1
0
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,
	}
}
Esempio n. 2
0
func emptyCtx() *ctx {
	return &ctx{
		handlers: defaulthandlers(),
		Xrroror:  xrr.NewXrroror(),
	}
}