bouncer/internal/format/writer.go

20 lines
293 B
Go
Raw Permalink Normal View History

2023-04-24 20:52:12 +02:00
package format
import "io"
type OutputMode string
const (
OutputModeWide OutputMode = "wide"
OutputModeCompact OutputMode = "compact"
)
type Hints struct {
Props []Prop
OutputMode OutputMode
}
type Writer interface {
Write(writer io.Writer, hints Hints, data ...any) error
}