全部搜尋項
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 [檔案列表]