mirror of
https://github.com/charlienet/go-mixed.git
synced 2025-07-17 16:12:42 +08:00
23 lines
332 B
Go
23 lines
332 B
Go
package logx
|
|
|
|
import (
|
|
"io"
|
|
)
|
|
|
|
// ensure we always implement io.WriteCloser
|
|
var _ io.WriteCloser = (*rotateDateWriter)(nil)
|
|
|
|
type rotateDateWriter struct {
|
|
MaxAge int
|
|
MaxBackups int
|
|
}
|
|
|
|
func (l *rotateDateWriter) Write(p []byte) (n int, err error) {
|
|
return 0, nil
|
|
}
|
|
|
|
func (l *rotateDateWriter) Close() error {
|
|
|
|
return nil
|
|
}
|