V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
The Go Programming Language
http://golang.org/
Go Playground
Go Projects
Revel Web Framework
chaleaoch

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

  •  
  •   chaleaoch · May 18, 2022 · 1259 views
    This topic created in 1444 days ago, the information mentioned may be changed or developed.

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

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

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

    arkInit
        1
    arkInit  
       May 18, 2022
    protobuf 是一种轻便高效的结构化数据存储格式, 目的是在数据传输时提高效率的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2134 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 00:48 · PVG 08:48 · LAX 17:48 · JFK 20:48
    ♥ Do have faith in what you're doing.