Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Float64Ptr ¶
Types ¶
type FormParser ¶
type FormParser struct {
// contains filtered or unexported fields
}
FormParser 将结构体对象转换成HTTP请求所需的KV形式, 只处理struct及*struct类型
> 关键字"..." 表示该字段的子字段不继承父辈的标签, 该方式可用于struct,map类型
例如: type Demo1 struct { Auth `zwf:"..."` } type Demo2 struct { Auth `zwf:"auth"` } type Auth struct { AK *string `zwf:"ak"` } Demo1: "ak"="xxx" Demo2: "auth.ak"="xxx"
> 关键字"join" 可以将[]string进行按英文逗号join操作, 参见parser_test.go的TestParse例子
func Default ¶
func Default() *FormParser
func New ¶ added in v0.0.2
func New(tag, ignoreFlag string) *FormParser
func (*FormParser) Debug ¶
func (p *FormParser) Debug(v reflect.Value)
Click to show internal directories.
Click to hide internal directories.