feat: get handlers return object slices
This commit is contained in:
@ -9,8 +9,8 @@ import (
|
||||
|
||||
type YamlFormatter struct{}
|
||||
|
||||
func (f *YamlFormatter) Format(object any) (io.Reader, error) {
|
||||
buffer, err := yaml.Marshal(object)
|
||||
func (f *YamlFormatter) Format(objects []any) (io.Reader, error) {
|
||||
buffer, err := yaml.Marshal(objects)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user