添加一个对外接口
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
package loggerx
|
||||
|
||||
import "context"
|
||||
|
||||
type Loggerx interface {
|
||||
Info(ctx context.Context, args ...any)
|
||||
Infof(ctx context.Context, format string, args ...any)
|
||||
Error(ctx context.Context, args ...any)
|
||||
Errorf(ctx context.Context, format string, args ...any)
|
||||
}
|
||||
Reference in New Issue
Block a user