better version of check for io.WriteCloser
This commit is contained in:
+1
-1
@@ -52,7 +52,7 @@ const (
|
||||
)
|
||||
|
||||
// ensure we always implement io.WriteCloser
|
||||
var _ io.WriteCloser = &Logger{}
|
||||
var _ io.WriteCloser = (*Logger)(nil)
|
||||
|
||||
// Logger is an io.WriteCloser that writes to a log file in the given directory
|
||||
// with the given NameFormat. NameFormat should include a time formatting
|
||||
|
||||
Reference in New Issue
Block a user