14 lines
206 B
Go
14 lines
206 B
Go
package output
|
|
|
|
import (
|
|
"fmt"
|
|
"io"
|
|
"strings"
|
|
)
|
|
|
|
type GoFormatter struct{}
|
|
|
|
func (f *GoFormatter) Format(objects []any) (io.Reader, error) {
|
|
return strings.NewReader(fmt.Sprintf("%#v", objects)), nil
|
|
}
|