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