baez90
57a7e10e74
* Add Prometheus metrics - cleanup - update dependencies - improve parsing of options where possible - Update Go to latest version
13 lines
187 B
Go
13 lines
187 B
Go
package format
|
|
|
|
import (
|
|
"gopkg.in/yaml.v3"
|
|
)
|
|
|
|
type yamlWriter struct {
|
|
encoder *yaml.Encoder
|
|
}
|
|
|
|
func (y *yamlWriter) Write(in interface{}) (err error) {
|
|
return y.encoder.Encode(in)
|
|
}
|