V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
The Go Programming Language
http://golang.org/
Go Playground
Go Projects
Revel Web Framework
chaleaoch
V2EX  ›  Go 编程语言

基于 protobuf 的数据验证算按套路出牌吗?

  •  
  •   chaleaoch · 2022-05-18 11:45:54 +08:00 · 729 次点击
    这是一个创建于 706 天前的主题,其中的信息可能已经有所发展或是发生改变。

    最真实的目的其实是做数据校验, 其实这个东西完全满足我的需求 https://github.com/go-playground/validator

    但是因为没用过 protobuf 我在想如果将 bytes 数据转换成 protobuf 在转回来是否可行?

    “不建议,但是如果非要用也不是不可以,这种算不可行。”

    arkInit
        1
    arkInit  
       2022-05-18 16:52:43 +08:00
    protobuf 是一种轻便高效的结构化数据存储格式, 目的是在数据传输时提高效率的
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   987 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 21:05 · PVG 05:05 · LAX 14:05 · JFK 17:05
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.