logger: add compile time test for interface compat

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2021-07-14 17:12:09 +03:00
parent c3def24bf4
commit 5b9c810653

View File

@ -20,6 +20,10 @@ type Wrapper interface {
Logf(LogfFunc) LogfFunc
}
var (
_ Logger = &OmitLogger{}
)
type OmitLogger struct {
l Logger
}