chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 12:49:06 +08:00
commit 60552ca0ce
144 changed files with 20883 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
package utils
import (
"bytes"
"github.com/goccy/go-yaml"
)
func PrettyYaml(data interface{}) (result string, err error) {
buffer := new(bytes.Buffer)
encoder := yaml.NewEncoder(buffer, yaml.Indent(2))
err = encoder.Encode(data)
if err != nil {
return
}
result = buffer.String()
return
}