proxy.golang.org : github.com/myENA/consul-decoder : v0.3.1
Package decoder - this unmarshals or decodes values from a consul KV store into a struct. The following types are supported: By default, the decoder packages looks for the struct tag "decoder". However, this can be overridden inside the Decoder struct as shown below. For the purposes of examples, we'll stick with the default "decoder" tag. By default, in the absence of a decoder tag, it will look for a consul key name with the same name as the struct field. Only exported struct fields are considered. The name comparison is case-insensitive by default, but this is configurable in the Decoder struct. the tag "-" indicates to skip the field. The modifier ",json" appended to the end signals that the value is to be interpreted as json and unmarshaled rather than interpreted. Similarly, the modififier ",csv" allows comma separated values to be read into a slice, and ",ssv" allows space separated values to be read intoa slice. For csv and ssv, slices of string, numeric and boolean are supported.
Registry -
Documentation -
Download -
JSON
purl: pkg:golang/github.com/my%21e%21n%21a/consul-decoder@v0.3.1
Published:
Indexed:
- github.com/armon/go-metrics v0.4.0
- github.com/fatih/color v1.13.0
- github.com/hashicorp/consul/api v1.14.0
- github.com/hashicorp/consul/sdk v0.11.0
- github.com/hashicorp/go-cleanhttp v0.5.2
- github.com/hashicorp/go-hclog v1.2.2
- github.com/hashicorp/go-immutable-radix v1.3.1
- github.com/hashicorp/go-rootcerts v1.0.2
- github.com/hashicorp/go-uuid v1.0.3
- github.com/hashicorp/golang-lru v0.5.4
- github.com/hashicorp/serf v0.10.0
- github.com/mattn/go-colorable v0.1.13
- github.com/mattn/go-isatty v0.0.16
- github.com/mitchellh/go-homedir v1.1.0
- github.com/mitchellh/mapstructure v1.5.0
- github.com/pkg/errors v0.9.1
- golang.org/x/sys v0.0.0-20220825204002-c680a09ffe64