首页
注册
登录
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请
登录
The Go Programming Language
›
http://golang.org/
›
Go Playground
Go Projects
›
Revel Web Framework
广告
V2EX
›
Go 编程语言
bufbuild/protovalidate 如何判断 string 是否为空跟未设置
ohohohh
·
12 天前
· 896 次点击
当 string username = "跟未设置 username ,如何让检验返回自定义错误?
string username = 2 [
(buf.validate.field).cel = {
id: "username.not_empty",
message: "username not Empty",
expression: "this.size() > 1"
}
];
string
自定义错误
1 条回复
•
2025-08-06 23:30:36 +08:00
1
qzzz
7 天前
optional string bar = 1;
关于
·
帮助文档
·
自助推广系统
·
博客
·
API
·
FAQ
·
实用小工具
·
3472 人在线
最高记录 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 22ms ·
UTC 05:05
·
PVG 13:05
·
LAX 22:05
·
JFK 01:05
Developed with
CodeLauncher
♥ Do have faith in what you're doing.
❯