Initial commit
This commit is contained in:
20
hw12_13_14_15_calendar/internal/logger/logger.go
Normal file
20
hw12_13_14_15_calendar/internal/logger/logger.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package logger
|
||||
|
||||
import "fmt"
|
||||
|
||||
type Logger struct { // TODO
|
||||
}
|
||||
|
||||
func New(level string) *Logger {
|
||||
return &Logger{}
|
||||
}
|
||||
|
||||
func (l Logger) Info(msg string) {
|
||||
fmt.Println(msg)
|
||||
}
|
||||
|
||||
func (l Logger) Error(msg string) {
|
||||
// TODO
|
||||
}
|
||||
|
||||
// TODO
|
||||
7
hw12_13_14_15_calendar/internal/logger/logger_test.go
Normal file
7
hw12_13_14_15_calendar/internal/logger/logger_test.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package logger
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestLogger(t *testing.T) {
|
||||
// TODO
|
||||
}
|
||||
Reference in New Issue
Block a user