Пример #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,
	}
}
Пример #2
0
func emptyCtx() *ctx {
	return &ctx{
		handlers: defaulthandlers(),
		Xrroror:  xrr.NewXrroror(),
	}
}