全部搜索项
bullseye  ] [  bookworm  ] [  trixie  ] [  sid  ]
[ 源代码: golang-github-bep-tmc  ]

软件包:golang-github-bep-tmc-dev(0.5.1-3)

golang-github-bep-tmc-dev 的相关链接

Screenshot

Debian 的资源:

下载源码包 golang-github-bep-tmc

维护小组:

外部的资源:

相似软件包:

provides round-trip serialization of typed Go maps

Codec for a Typed Map

bep/tmc provides basic roundtrip JSON etc. encoding/decoding of a map[string]interface{} with custom type adapters.

Text based serialization formats like JSON and YAML are convenient, but when used with Go maps, most type information gets lost in translation. For structs, one can work around some of the limitations with custom MarshalJSON, UnmarshalJSON, MarshalText and UnmarshalText. For the commonly used flexible and schema-less "map[string]interface {}", this is, as the author is aware of, not an option. This library provides a solution to this problem.

See the GoDoc at https://godoc.org/github.com/bep/tmc for some basic examples and how to configure custom codec, adapters, etc.

其他与 golang-github-bep-tmc-dev 有关的软件包

  • 依赖
  • 推荐
  • 建议
  • 增强

下载 golang-github-bep-tmc-dev

下载可用于所有硬件架构的
硬件架构 软件包大小 安装后大小 文件
all 8.1 kB36.0 kB [文件列表]