Documentation ¶
Overview ¶
gin 的封装
Index ¶
- func AutoVerifyHandler(handlerFunc interface{}) func(*gin.Context)
- func CopyStruct(src interface{}, dst interface{}) error
- func E加载html模板路径(r *gin.Engine, 模板路径 string)
- func E绑定静态文件目录(r *gin.Engine, 静态目录路径 string)
- func E获取多个文件(c *gin.Context, 表单名称 string, 上传路径 string) ([]string, []error)
- func E获取文件(c *gin.Context, 表单名称 string, 上传路径 string) (string, error)
- func I(c *gin.Context, 规则 string, 默认值 string) string
- func IAll(c *gin.Context) map[string]interface{}
- func IVerify(c *gin.Context, 规则 string, 默认值 string, 验证规则 string, ...) (string, error)
- func ItoInt64(c *gin.Context, 规则 string, 默认值 string) int64
- func NewError(code int, msg string) error
- func Verify(c *gin.Context, dst interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoVerifyHandler ¶
func CopyStruct ¶
func CopyStruct(src interface{}, dst interface{}) error
func E加载html模板路径 ¶
func IAll ¶ added in v1.2.1
在gin中获取所有的参数 从json,post,get中获取 优先级 json>post>get 返回map[string]interface{}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.