mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-02-26 16:57:08 +00:00
15 lines
286 B
Go
15 lines
286 B
Go
// Package yaml provides a common entrance for YAML marshaling and unmarshalling.
|
|
package yaml
|
|
|
|
import (
|
|
"gopkg.in/yaml.v3"
|
|
)
|
|
|
|
func Unmarshal(in []byte, out any) (err error) {
|
|
return yaml.Unmarshal(in, out)
|
|
}
|
|
|
|
func Marshal(in any) (out []byte, err error) {
|
|
return yaml.Marshal(in)
|
|
}
|