goweb/cli/format/writer.go

20 lines
293 B
Go
Raw Normal View History

2023-12-15 20:01:37 +01: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
}