Bug#1013173: ITP: golang-github-invopop-yaml -- better way to marshal and unmarshal YAML in Golang
Package: wnpp
Severity: wishlist
Owner: Anthony Fok <foka@debian.org>
* Package name : golang-github-invopop-yaml
Version : 0.2.0-1
Upstream Authors: Sam Ghods, The Go Authors, Sam Lown
* URL : https://github.com/invopop/yaml
* License : Expat, BSD-3-Clause
Programming Lang: Go
Description : better way to marshal and unmarshal YAML in Golang
This package is a wrapper around go-yaml (gopkg.in/yaml.v3) designed to
enable a better way of handling YAML when marshaling to and from structs.
.
This is a fork and split of the original github.com/ghodss/yaml
repository which no longer appears to be maintained.
.
In short, this library first converts YAML to JSON using go-yaml and then
uses json.Marshal and json.Unmarshal to convert to or from the struct.
This means that it effectively reuses the JSON struct tags as well as
the custom JSON methods MarshalJSON and UnmarshalJSON unlike go-yaml.
Reason for packaging:
Dependency of golang-github-getkin-kin-openapi 0.97.0 and up.
Reply to: