mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-24 04:36:38 +00:00
98a09b5633
Bumps [github.com/spf13/viper](https://github.com/spf13/viper) from 1.14.0 to 1.15.0. - [Release notes](https://github.com/spf13/viper/releases) - [Commits](https://github.com/spf13/viper/compare/v1.14.0...v1.15.0) --- updated-dependencies: - dependency-name: github.com/spf13/viper dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
15 lines
341 B
Go
15 lines
341 B
Go
package yaml
|
|
|
|
import "gopkg.in/yaml.v3"
|
|
|
|
// Codec implements the encoding.Encoder and encoding.Decoder interfaces for YAML encoding.
|
|
type Codec struct{}
|
|
|
|
func (Codec) Encode(v map[string]interface{}) ([]byte, error) {
|
|
return yaml.Marshal(v)
|
|
}
|
|
|
|
func (Codec) Decode(b []byte, v map[string]interface{}) error {
|
|
return yaml.Unmarshal(b, &v)
|
|
}
|