Utility package does conversions between Consul KV pairs to Go struct or map[string]interface{}. It also provides several utilities to convert directly: nested map to flatten/kv map or Consul kv pairs, flatten/kv map to Go struct, Kv map to nested map, etc.
Package kvstruct
exposes various utility functions to do conversions between: Consul KV pairs and native Go Struct or map[string]interface{}.
It also provides several utilities to convert directly:
There are some notions that are used in this package.
This package only supports the following value types:
int, bool, string, []int, []bool, []string and map[string]interface{}
See the Godoc