Decoder decodes the contents of a byte slice into Viper's internal data structures. It's primarily used for decoding contents of a file into a map[string]any.
| 20 | // Decoder decodes the contents of a byte slice into Viper's internal data structures. |
| 21 | // It's primarily used for decoding contents of a file into a map[string]any. |
| 22 | type Decoder interface { |
| 23 | Decode(b []byte, v map[string]any) error |
| 24 | } |
| 25 | |
| 26 | // Codec combines [Encoder] and [Decoder] interfaces. |
| 27 | type Codec interface { |
no outgoing calls
no test coverage detected
searching dependent graphs…