【文件属性】:
文件名称:gator:go的结构验证库
文件大小:262KB
文件格式:ZIP
更新时间:2021-06-09 12:30:59
Go
鳄鱼
Gator(或 valigator)是一个使用结构标签验证结构的库。 这是一个使用示例:
// NOTE: Gator tags will only be recognized on fields that are public.
type BigStruct struct {
Required string `gator:”nonzero”`
Email string `gator:”email”`
Website string `gator:"url"`
IPAddress string `gator:"ip"`
PetName string `gator:"alpha"`
Phone
【文件预览】:
gator-master
----func.go(6KB)
----util.go(1KB)
----gator_test.go(9KB)
----LICENSE(1KB)
----doc.go(2KB)
----README.md(2KB)
----Godeps()
--------_workspace()
--------Readme(136B)
--------Godeps.json(379B)
----gator.go(7KB)
----.gitignore(266B)
----gator.png(195KB)