Add base setup
This commit is contained in:
15
default_logger.go
Normal file
15
default_logger.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package curre
|
||||
|
||||
import "fmt"
|
||||
|
||||
type DefaultLogger struct{}
|
||||
|
||||
var _ Logger = &DefaultLogger{}
|
||||
|
||||
func (dl *DefaultLogger) Info(msg string, args ...any) {
|
||||
fmt.Printf(msg, args...)
|
||||
}
|
||||
|
||||
func (dl *DefaultLogger) Error(msg string, args ...any) {
|
||||
fmt.Printf(msg, args...)
|
||||
}
|
Reference in New Issue
Block a user