コード例 #1
0
ファイル: result.go プロジェクト: maiconio/flotilla
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
ファイル: ctx.go プロジェクト: maiconio/flotilla
func emptyCtx() *ctx {
	return &ctx{
		handlers: defaulthandlers(),
		Xrroror:  xrr.NewXrroror(),
	}
}