diff options
| author | Eltrac <hi@guhub.cn> | 2025-12-03 16:10:50 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-12-03 16:10:50 +0800 |
| commit | 054f9b22b0f72b703f3f05434a026b280a6692ae (patch) | |
| tree | 3d76af8cf7605fc8774717cf5681e38807c5a7d3 /types.go | |
| parent | a7f5c63a22b8ee35545dbfe2bf8931cb5af8fe23 (diff) | |
feat: provide basic data getters
- c.Query(), from URL query string - c.PostFormValue(), from POST form -
c.FormValue(), from both URL query and POST form - c.BindJSON(), from request
body
Diffstat (limited to 'types.go')
| -rw-r--r-- | types.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -10,6 +10,7 @@ type Context struct { R *http.Request Params map[string]string Querys url.Values + Form url.Values } type Handler func(c *Context) |
