13 lines
187 B
Go
13 lines
187 B
Go
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)
|
|
}
|