mirror of
https://github.com/kemko/icecast-ripper.git
synced 2026-01-01 15:55:42 +03:00
Bumps [github.com/spf13/viper](https://github.com/spf13/viper) from 1.20.1 to 1.21.0. - [Release notes](https://github.com/spf13/viper/releases) - [Commits](https://github.com/spf13/viper/compare/v1.20.1...v1.21.0) --- updated-dependencies: - dependency-name: github.com/spf13/viper dependency-version: 1.21.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
15 lines
327 B
Go
15 lines
327 B
Go
package yaml
|
|
|
|
import "go.yaml.in/yaml/v3"
|
|
|
|
// Codec implements the encoding.Encoder and encoding.Decoder interfaces for YAML encoding.
|
|
type Codec struct{}
|
|
|
|
func (Codec) Encode(v map[string]any) ([]byte, error) {
|
|
return yaml.Marshal(v)
|
|
}
|
|
|
|
func (Codec) Decode(b []byte, v map[string]any) error {
|
|
return yaml.Unmarshal(b, &v)
|
|
}
|