百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
M

msgpack

> 编程语言
开源

msgpack.org[Go] 用于 Golang 的 MessagePack 编码

2.7K stars0 点赞2 次浏览
访问官网GitHub

工具介绍

msgpack.org[Go] 用于 Golang 的 MessagePack 编码

用于 Golang 的 MessagePack 编码

msgpack 由 :star: uptrace/uptrace 提供支持。 Uptrace 是一个 开源 APM 和极速的 分布式追踪工具,由 OpenTelemetry 和 ClickHouse 驱动。也请给它点个星吧!

资源

  • 文档
  • 聊天
  • 参考
  • 示例

特性

  • 基本类型、数组、映射、结构体、time.Time 和 interface{}。
  • Appengine *datastore.Key 和 datastore.Cursor。
  • 用于自定义编码的 [CustomEncoder]/[CustomDecoder] 接口。
  • 扩展 用于编码 类型信息。
  • 通过 msgpack:"my_field_name" 重命名字段,以及通过 msgpack:"alias:another_name" 设置别名。
  • 通过 msgpack:",omitempty" 标签省略单个空字段,或省略 结构体中的所有空字段。
  • 映射键排序。
  • 编码/解码所有 或 单个结构体。
  • Encoder.SetCustomStructTag 与 [Decoder.SetCustomStructTag] 可将 msgpack 变为 任何标签的即插即用替代品。
  • 简单但非常快速高效的 查询。

[decoder.setcustomstructtag] https://pkg.go.dev/github.com/vmihailenco/msgpack/v5#Decoder.SetCustomStruc

structs as arrays [customencoder]: https://pkg.go.dev/github.com/vmihailenco/msgpack/v5#CustomEncoder [customdecoder]: https://pkg.go.dev/github.com/vmihailenco/msgpack/v5#CustomDecoder

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Goencodinggogolangmsgpack

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言