Initial QSfera import
This commit is contained in:
+35
@@ -0,0 +1,35 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user