Files
charts/clustertool/pkg/helper/marshaller.go
2024-11-05 23:23:12 +01:00

12 lines
178 B
Go

package helper
import (
"bytes"
)
func MarshalYaml(buf *bytes.Buffer, v interface{}) error {
enc := YamlNewEncoder(buf)
enc.SetIndent(2)
return enc.Encode(v)
}