api/internal/format/yaml_writer.go
baez90 57a7e10e74
Add Prometheus metrics (#10)
* Add Prometheus metrics

- cleanup
- update dependencies
- improve parsing of options where possible
- Update Go to latest version
2020-10-02 11:56:48 +02:00

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)
}