mirror of
https://github.com/truecharts/charts.git
synced 2026-07-30 17:11:22 -03:00
12 lines
178 B
Go
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)
|
|
}
|