api/internal/format/yaml_writer.go

14 lines
187 B
Go
Raw Normal View History

package format
import (
"gopkg.in/yaml.v2"
)
type yamlWriter struct {
encoder *yaml.Encoder
}
func (y *yamlWriter) Write(in interface{}) (err error) {
return y.encoder.Encode(in)
}