1
0
mirror of https://github.com/charlienet/go-mixed.git synced 2025-07-18 08:32:40 +08:00

temporary

This commit is contained in:
2022-07-29 09:46:29 +08:00
parent 135b3a983b
commit 35751f7fdb
14 changed files with 153 additions and 56 deletions

View File

@ -0,0 +1,22 @@
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
}