示例#1
0
文件: main.go 项目: sheercat/fresh
func runnerMiddleware(rw web.ResponseWriter, req *web.Request, next web.NextMiddlewareFunc) {
	if runnerutils.HasErrors() {
		runnerutils.RenderError(rw)
		return
	}

	next(rw, req)
}
示例#2
0
文件: main.go 项目: sheercat/fresh
func runnerMiddleware(w http.ResponseWriter, r *http.Request) {
	if runnerutils.HasErrors() {
		runnerutils.RenderError(w)
	}
}