This commit is contained in:
GitLab Deploy Bot
2025-10-21 23:45:13 +07:00
committed by Adnan Zahir
parent d41e16cab9
commit ad815b3412
3546 changed files with 4952546 additions and 30 deletions
+14
View File
@@ -0,0 +1,14 @@
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]any) ([]byte, error) {
return yaml.Marshal(v)
}
func (Codec) Decode(b []byte, v map[string]any) error {
return yaml.Unmarshal(b, &v)
}