标签:field star base64 content start 相同 orm body tst
type InputStructure struct {
Content string `form:"content" binding:"required,len=2"`
Age int `form:"age" binding:"max=10,min=1"`
Pass string `form:"pass" binding:"gte=6"` // 字母和数字
ConfirmPass string `form:"cpass" binding:"eqfield=Pass"` // 与上一个域相同
FileName string `form:"fname" binding:"gte=2,alphanum"` // 字母和数字
Email string `form:"email" binding:"email"`
//Body string `form:"base64" binding:"base64"` // startswith=hello, endswith=hello, contains=@, uuid, ip
}
标签:field star base64 content start 相同 orm body tst
原文地址:https://www.cnblogs.com/jacktu/p/13232159.html