mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-23 12:16:38 +00:00
b56dae8120
* update all but bun libraries Signed-off-by: kim <grufwub@gmail.com> * remove my personal build script changes Signed-off-by: kim <grufwub@gmail.com>
15 lines
344 B
Go
15 lines
344 B
Go
package yaml
|
|
|
|
// import "gopkg.in/yaml.v2"
|
|
|
|
// 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)
|
|
}
|