mirror of
https://github.com/asciimoo/wuzz
synced 2024-11-14 18:12:55 +00:00
22 lines
303 B
Go
22 lines
303 B
Go
package formatter
|
|
|
|
import (
|
|
"io"
|
|
)
|
|
|
|
type textFormatter struct {
|
|
}
|
|
|
|
func (f *textFormatter) Format(writer io.Writer, data []byte) error {
|
|
_, err := writer.Write(data)
|
|
return err
|
|
}
|
|
|
|
func (f *textFormatter) Title() string {
|
|
return "[text]"
|
|
}
|
|
|
|
func (f *textFormatter) Searchable() bool {
|
|
return true
|
|
}
|