20 lines
293 B
Go
20 lines
293 B
Go
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
|
|
}
|