| 1 | Sourcescip-debian debian golang-github-mitchellh-mapstructure 1.5.0+git20231216.8508981-1 golang-github-mitchellh-mapstructure/Source.: golang-github-mitchellh-mapstructurescip-debian debian golang-github-mitchellh-mapstructure 1.5.0+git20231216.8508981-1 golang-github-mitchellh-mapstructure/ |
| 2 | Sectionscip-debian debian golang-github-mitchellh-mapstructure 1.5.0+git20231216.8508981-1 golang-github-mitchellh-mapstructure/Section.: golangscip-debian . . . section/golang. |
| 3 | Priorityscip-debian debian golang-github-mitchellh-mapstructure 1.5.0+git20231216.8508981-1 golang-github-mitchellh-mapstructure/Priority.: optionalscip-debian . . . priority/optional. |
| 4 | Maintainerscip-debian debian golang-github-mitchellh-mapstructure 1.5.0+git20231216.8508981-1 golang-github-mitchellh-mapstructure/Maintainer.: Debian Go Packaging Team <[email protected]scip-debian . . . identity/`[email protected]`.> |
| 5 | Uploadersscip-debian debian golang-github-mitchellh-mapstructure 1.5.0+git20231216.8508981-1 golang-github-mitchellh-mapstructure/Uploaders.: Kouhei Maeda <[email protected]scip-debian . . . identity/`[email protected]`.>, |
| 6 | Anthony Fok <[email protected]scip-debian . . . identity/`[email protected]`.>, |
| 7 | Tim Potter <[email protected]scip-debian . . . identity/`[email protected]`.>, |
| 8 | Rules-Requires-Rootscip-debian debian golang-github-mitchellh-mapstructure 1.5.0+git20231216.8508981-1 golang-github-mitchellh-mapstructure/Rules-Requires-Root.: no |
| 9 | Build-Dependsscip-debian debian golang-github-mitchellh-mapstructure 1.5.0+git20231216.8508981-1 golang-github-mitchellh-mapstructure/Build-Depends.: debhelper-compatscip-debian debian debhelper-compat . debhelper-compat/debhelper-compat# (= 13), |
| 10 | dh-sequence-golangscip-debian debian dh-sequence-golang . dh-sequence-golang/dh-sequence-golang#, |
| 11 | golang-anyscip-debian debian golang-any . golang-any/golang-any#, |
| 12 | Testsuitescip-debian debian golang-github-mitchellh-mapstructure 1.5.0+git20231216.8508981-1 golang-github-mitchellh-mapstructure/Testsuite.: autopkgtest-pkg-go |
| 13 | Standards-Versionscip-debian debian golang-github-mitchellh-mapstructure 1.5.0+git20231216.8508981-1 golang-github-mitchellh-mapstructure/Standards-Version.: 4.6.1 |
| 14 | Vcs-Browserscip-debian debian golang-github-mitchellh-mapstructure 1.5.0+git20231216.8508981-1 golang-github-mitchellh-mapstructure/Vcs-Browser.: https://salsa.debian.org/go-team/packages/golang-github-mitchellh-mapstructurescip-debian . . . url/`https://salsa.debian.org/go-team/packages/golang-github-mitchellh-mapstructure`. |
| 15 | Vcs-Gitscip-debian debian golang-github-mitchellh-mapstructure 1.5.0+git20231216.8508981-1 golang-github-mitchellh-mapstructure/Vcs-Git.: https://salsa.debian.org/go-team/packages/golang-github-mitchellh-mapstructure.git |
| 16 | Homepagescip-debian debian golang-github-mitchellh-mapstructure 1.5.0+git20231216.8508981-1 golang-github-mitchellh-mapstructure/Homepage.: https://github.com/mitchellh/mapstructurescip-debian . . . url/`https://github.com/mitchellh/mapstructure`. |
| 17 | XS-Go-Import-Path: github.com/mitchellh/mapstructure |
| 18 | |
| 19 | Packagescip-debian debian golang-github-mitchellh-mapstructure 1.5.0+git20231216.8508981-1 golang-github-mitchellh-mapstructure/golang-github-mitchellh-mapstructure-dev#Package.: golang-github-mitchellh-mapstructure-devscip-debian debian golang-github-mitchellh-mapstructure-dev . golang-github-mitchellh-mapstructure-dev/golang-github-mitchellh-mapstructure-dev# |
| 20 | Architecturescip-debian debian golang-github-mitchellh-mapstructure 1.5.0+git20231216.8508981-1 golang-github-mitchellh-mapstructure/golang-github-mitchellh-mapstructure-dev#Architecture.: allscip-debian . . . architecture/all. |
| 21 | Multi-Archscip-debian debian golang-github-mitchellh-mapstructure 1.5.0+git20231216.8508981-1 golang-github-mitchellh-mapstructure/golang-github-mitchellh-mapstructure-dev#Multi-Arch.: foreign |
| 22 | Dependsscip-debian debian golang-github-mitchellh-mapstructure 1.5.0+git20231216.8508981-1 golang-github-mitchellh-mapstructure/golang-github-mitchellh-mapstructure-dev#Depends.: ${misc:Depends}, |
| 23 | ${shlibs:Depends}, |
| 24 | Descriptionscip-debian debian golang-github-mitchellh-mapstructure 1.5.0+git20231216.8508981-1 golang-github-mitchellh-mapstructure/golang-github-mitchellh-mapstructure-dev#Description.: library for decoding generic map values into native Go structures |
| 25 | mapstructure is a Go library for decoding generic map values to structures and |
| 26 | vice versa, while providing helpful error handling. |
| 27 | . |
| 28 | This library is most useful when decoding values from some data stream (JSON, |
| 29 | Gob, etc.) where you don't quite know the structure of the underlying data |
| 30 | until you read a part of it. You can therefore read a map[string]interface{} |
| 31 | and use this library to decode it into the proper underlying native Go |
| 32 | structure. |
| 33 | . |
| 34 | Go offers fantastic standard libraries for decoding formats such as JSON. The |
| 35 | standard method is to have a struct pre-created, and populate that struct from |
| 36 | the bytes of the encoded format. This is great, but the problem is if you have |
| 37 | configuration or an encoding that changes slightly depending on specific |
| 38 | fields. |
| 39 | . |
| 40 | Perhaps we can't populate a specific structure without first reading the "type" |
| 41 | field from the JSON. We could always do two passes over the decoding of the |
| 42 | JSON (reading the "type" first, and the rest later). However, it is much |
| 43 | simpler to just decode this into a map[string]interface{} structure, read the |
| 44 | "type" key, then use something like this library to decode it into the proper |
| 45 | structure. |