logger: add compile time test for interface compat
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
c3def24bf4
commit
5b9c810653
@ -20,6 +20,10 @@ type Wrapper interface {
|
|||||||
Logf(LogfFunc) LogfFunc
|
Logf(LogfFunc) LogfFunc
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var (
|
||||||
|
_ Logger = &OmitLogger{}
|
||||||
|
)
|
||||||
|
|
||||||
type OmitLogger struct {
|
type OmitLogger struct {
|
||||||
l Logger
|
l Logger
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user