File tree Expand file tree Collapse file tree 3 files changed +3
-11
lines changed Expand file tree Collapse file tree 3 files changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,6 @@ require (
14
14
github.com/onsi/gomega v1.8.1
15
15
github.com/prometheus/client_golang v1.0.0
16
16
github.com/prometheus/client_model v0.2.0
17
- github.com/spf13/pflag v1.0.5
18
- go.uber.org/atomic v1.4.0 // indirect
19
17
go.uber.org/zap v1.10.0
20
18
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4
21
19
gomodules.xyz/jsonpatch/v2 v2.0.1
Original file line number Diff line number Diff line change @@ -319,8 +319,6 @@ go.mongodb.org/mongo-driver v1.1.2/go.mod h1:u7ryQJ+DOzQmeO7zB6MHyr8jkEQvC8vH7qL
319
319
go.opencensus.io v0.21.0 /go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU =
320
320
go.uber.org/atomic v1.3.2 h1:2Oa65PReHzfn29GpvgsYwloV9AVFHPDk8tYxt2c2tr4 =
321
321
go.uber.org/atomic v1.3.2 /go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE =
322
- go.uber.org/atomic v1.4.0 h1:cxzIVoETapQEqDhQu3QfnvXAV4AlzcvUCxkVUFw3+EU =
323
- go.uber.org/atomic v1.4.0 /go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE =
324
322
go.uber.org/multierr v1.1.0 h1:HoEmRHQPVSqub6w2z2d2EOVs2fjyFRGyofhKuyDq0QI =
325
323
go.uber.org/multierr v1.1.0 /go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0 =
326
324
go.uber.org/zap v1.10.0 h1:ORx85nbTijNz8ljznvCMR1ZBIPKFn3jQrag10X2AsuM =
Original file line number Diff line number Diff line change @@ -23,11 +23,13 @@ import (
23
23
"strconv"
24
24
"strings"
25
25
26
- "github.com/spf13/pflag"
27
26
"go.uber.org/zap"
28
27
"go.uber.org/zap/zapcore"
29
28
)
30
29
30
+ // each of these flags also should implement the flag.Value, as well
31
+ // as pflag.Value for convinience.
32
+
31
33
var levelStrings = map [string ]zapcore.Level {
32
34
"debug" : zap .DebugLevel ,
33
35
"-1" : zap .DebugLevel ,
@@ -46,8 +48,6 @@ type encoderFlag struct {
46
48
value string
47
49
}
48
50
49
- var _ pflag.Value = & encoderFlag {}
50
-
51
51
func (ev * encoderFlag ) String () string {
52
52
return ev .value
53
53
}
@@ -85,8 +85,6 @@ type levelFlag struct {
85
85
value string
86
86
}
87
87
88
- var _ pflag.Value = & levelFlag {}
89
-
90
88
func (ev * levelFlag ) Set (flagValue string ) error {
91
89
level , validLevel := levelStrings [strings .ToLower (flagValue )]
92
90
if ! validLevel {
@@ -119,8 +117,6 @@ type stackTraceFlag struct {
119
117
value string
120
118
}
121
119
122
- var _ pflag.Value = & stackTraceFlag {}
123
-
124
120
func (ev * stackTraceFlag ) Set (flagValue string ) error {
125
121
level , validLevel := levelStrings [strings .ToLower (flagValue )]
126
122
if ! validLevel {
You can’t perform that action at this time.
0 commit comments