MCPcopy
hub / github.com/spf13/viper / Decode

Method Decode

encoding.go:23–23  ·  view source on GitHub ↗
(b []byte, v map[string]any)

Source from the content-addressed store, hash-verified

21// It's primarily used for decoding contents of a file into a map[string]any.
22type Decoder interface {
23 Decode(b []byte, v map[string]any) error
24}
25
26// Codec combines [Encoder] and [Decoder] interfaces.

Callers 2

decodeFunction · 0.95
unmarshalReaderMethod · 0.65

Implementers 5

codecencoding_test.go
Codecinternal/encoding/dotenv/codec.go
Codecinternal/encoding/toml/codec.go
Codecinternal/encoding/yaml/codec.go
Codecinternal/encoding/json/codec.go

Calls

no outgoing calls

Tested by

no test coverage detected