This repository was archived by the owner on Jun 2, 2023. It is now read-only.
File tree 2 files changed +9
-5
lines changed
2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -27,8 +27,9 @@ linters:
27
27
- gochecknoinits
28
28
- scopelint
29
29
- dupl
30
+ - typecheck
30
31
31
32
# golangci.com configuration
32
33
# https://github.com/golangci/golangci/wiki/Configuration
33
34
service :
34
- golangci-lint-version : 1.13 .x # use fixed version to not introduce new linters unexpectedly
35
+ golangci-lint-version : 1.15 .x # use fixed version to not introduce new linters unexpectedly
Original file line number Diff line number Diff line change 1
1
package logutil
2
2
3
+ import "fmt"
3
4
type Func func (format string , args ... interface {})
4
5
5
6
type Log interface {
6
- Fatalf (format string , args ... interface {})
7
- Errorf (format string , args ... interface {})
8
- Warnf (format string , args ... interface {})
7
+ Fatalf (format string , args ... interface {})
8
+ Errorf (format string , args ... interface {})
9
+ Warnf (format string , args ... interface {})
9
10
Infof (format string , args ... interface {})
10
11
Debugf (key string , format string , args ... interface {})
11
12
@@ -15,6 +16,7 @@ type Log interface {
15
16
16
17
type LogLevel int
17
18
19
+ // setup levellign
18
20
const (
19
21
// debug message, write to debug logs only by logutils.Debug
20
22
LogLevelDebug LogLevel = 0
@@ -29,5 +31,6 @@ const (
29
31
30
32
// only not hidden from user errors: whole program failing, usually
31
33
// error logging happens in 1-2 places: in the "main" function.
32
- LogLevelError LogLevel = 3
34
+ LogLevelError LogLevel = 3
33
35
)
36
+
You can’t perform that action at this time.
0 commit comments