formam:一个用于在Go中将表单的值解码为struct的包

时间:2021-05-08 08:09:40
【文件属性】:
文件名称:formam:一个用于在Go中将表单的值解码为struct的包
文件大小:22KB
文件格式:ZIP
更新时间:2021-05-08 08:09:40
decoding form decode decode-form Go 福马姆 一个Go包,用于解码HTTP表单和查询参数。 唯一的要求是或更高版本。 特征 maps , structs和slices无限嵌套。 在地图的值和键中支持UnmarshalText()接口。 支持的map键是string , int和uintptr , uint和uintptr , uintptr , float32 , float64 , bool , struct , custom types ,它们是通过函数或UnmarshalText方法注册的上述类型之一,是上述类型之一的pointer 可以访问带有interface{}字段,该字段具有map , struct或slice作为值。 解码time.Time与格式2006-01-02由其UnmarshalText()方法。 解码url.URL 。 附加到slice和array类型,但未明确指示索引。 注册自定义类型
【文件预览】:
formam-master
----.travis.yml(51B)
----errors_test.go(831B)
----errors.go(2KB)
----LICENSE(11KB)
----formam_test.go(26KB)
----formam.go(19KB)
----.gitignore(313B)
----README.md(6KB)
----go.mod(44B)
----benchmark_test.go(12KB)

网友评论