Files
Курнат Андрей 2315f25754 Initial QSfera import
2026-06-07 10:20:04 +03:00

36 lines
652 B
Go

package stdio
import "io"
// Flusher interface
type Flusher interface {
Flush() error
}
// Syncer interface
type Syncer interface {
Sync() error
}
// FlushWriter is the interface satisfied by logging destinations.
type FlushWriter interface {
Flusher
// Writer the output writer
io.Writer
}
// FlushCloseWriter is the interface satisfied by logging destinations.
type FlushCloseWriter interface {
Flusher
// WriteCloser the output writer
io.WriteCloser
}
// SyncCloseWriter is the interface satisfied by logging destinations.
// such as os.File
type SyncCloseWriter interface {
Syncer
// WriteCloser the output writer
io.WriteCloser
}