adds ability to set an env in the app context

This commit is contained in:
2018-01-04 07:32:15 +00:00
parent 95400f4e69
commit 2d05e42555
7 changed files with 26 additions and 11 deletions

View File

@@ -6,6 +6,8 @@ type Handler func(Context) error
type Router interface {
Prefix(path string)
SetEnv(env string)
GET(path string, h Handler)
POST(path string, h Handler)
Static(path string, root http.FileSystem)