首页
注册
登录
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请
登录
The Go Programming Language
›
http://golang.org/
›
Go Playground
Go Projects
›
Revel Web Framework
广告
V2EX
›
Go 编程语言
go 的参数验证的第三方包
aschoolboy
·
2018-08-15 16:31:53 +08:00
· 1883 次点击
这是一个创建于 2090 天前的主题,其中的信息可能已经有所发展或是发生改变。
问下 go 有参数验证的第三方包吗? github 上不知道怎么搜。 比如这个结构体中的 name 字段不能为空,这种判断。
结构体
参数
验证
第三方
2 条回复
•
2018-08-15 16:54:03 +08:00
1
YumeMichi
2018-08-15 16:52:59 +08:00
https://github.com/go-playground/validator
2
lxz6597863
2018-08-15 16:54:03 +08:00
https://github.com/asaskevich/govalidator
关于
·
帮助文档
·
博客
·
API
·
FAQ
·
我们的愿景
·
实用小工具
·
3520 人在线
最高记录 6543
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 47ms ·
UTC 00:53
·
PVG 08:53
·
LAX 17:53
·
JFK 20:53
Developed with
CodeLauncher
♥ Do have faith in what you're doing.