1 Star 0 Fork 0

也许 / gin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
query.go 469 Bytes
一键复制 编辑 原始数据 按行查看 历史
// Copyright 2017 Manu Martinez-Almeida. All rights reserved.
// Use of this source code is governed by a MIT style
// license that can be found in the LICENSE file.
package binding
import "net/http"
type queryBinding struct{}
func (queryBinding) Name() string {
return "query"
}
func (queryBinding) Bind(req *http.Request, obj interface{}) error {
values := req.URL.Query()
if err := mapForm(obj, values); err != nil {
return err
}
return validate(obj)
}
1
https://gitee.com/Happay-Code/gin.git
git@gitee.com:Happay-Code/gin.git
Happay-Code
gin
gin
v1.3.0

搜索帮助

53164aa7 5694891 3bd8fe86 5694891