Skip to content

Commit

Permalink
Update context.go
Browse files Browse the repository at this point in the history
Add Data(map[string]interface{})
  • Loading branch information
insionng committed Nov 19, 2015
1 parent d232924 commit e080b6f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions context.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ type (
pnames []string
pvalues []string
query url.Values
Data map[string]interface{}
store store
vodka *Vodka
}
Expand All @@ -36,6 +37,7 @@ func NewContext(req *http.Request, res *Response, e *Vodka) *Context {
response: res,
vodka: e,
pvalues: make([]string, *e.maxParam),
Data: make(map[string]interface{}),
store: make(store),
}
}
Expand Down

0 comments on commit e080b6f

Please sign in to comment.