app type transition (#7167)

This commit is contained in:
Chris
2017-09-06 17:12:54 -05:00
committed by GitHub
parent b84bd21089
commit 1adfd0e9be
178 changed files with 2919 additions and 2806 deletions

View File

@@ -8,6 +8,16 @@ import (
"net/http"
)
type App struct {
Srv *Server
}
var globalApp App
func Global() *App {
return &globalApp
}
func CloseBody(r *http.Response) {
if r.Body != nil {
ioutil.ReadAll(r.Body)