k0sproject / dig

A go package for working with arbitrary nested maps
Apache License 2.0
5 stars 2 forks source link

Add missing support for float64 and several other value types #6

Closed kke closed 1 week ago

kke commented 1 week ago

Missing float support was noticed in https://github.com/k0sproject/k0sctl/issues/785

YAMLs could also contain []byte via !!binary f00f00. Some other types like time.Time are possible but when decoding into a plain map, they will be strings.

Fixes #5 Closes #4 (I totally missed a PR that was submitted to fix the same problem.)