套件: golang-github-bep-tmc-dev (0.5.1-2)
golang-github-bep-tmc-dev 的相關超連結
Trisquel 的資源:
下載原始碼套件 golang-github-bep-tmc:
- [golang-github-bep-tmc_0.5.1-2.dsc]
- [golang-github-bep-tmc_0.5.1.orig.tar.gz]
- [golang-github-bep-tmc_0.5.1-2.debian.tar.xz]
維護者:
Original Maintainers:
- Debian Go Packaging Team
- Anthony Fok
外部的資源:
- 主頁 [github.com]
相似套件:
- golang-github-bmatsuo-lmdb-go-dev
- ffjson
- golang-github-google-go-cmp-dev
- golang-github-pquerna-ffjson-dev
- golang-github-mitchellh-mapstructure-dev
- libghc-hsyaml-doc
- libghc-hsyaml-prof
- golang-gopkg-yaml.v3-dev
- golang-github-go-openapi-jsonpointer-dev
- golang-github-alecthomas-jsonschema-dev
- libdata-yaml-perl
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 有關的套件
|
|
|
-
- dep: golang-github-frankban-quicktest-dev
- quick helpers for testing Go applications
-
- dep: golang-github-google-go-cmp-dev
- Package for comparing Go values in tests
-
- dep: golang-yaml.v2-dev
- Transitional package for golang-gopkg-yaml.v2-dev
同時作為一個虛擬套件由這些套件提供: golang-gopkg-yaml.v2-dev