feat: go output formatter
This commit is contained in:
13
core/output/go.go
Normal file
13
core/output/go.go
Normal file
@ -0,0 +1,13 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user