update golang
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
andrey1s
2022-03-13 11:56:49 +03:00
parent f70653066a
commit 51b844d50b
15 changed files with 165 additions and 138 deletions

View File

@@ -38,17 +38,17 @@ func WithLevel(lvl level.Level) Option {
}
func New(opts ...Option) *Entry {
e := &Entry{
entry := &Entry{
fields: make(field.Fields, 0, defaultCap+1),
level: level.Debug,
msg: "",
}
for _, opt := range opts {
opt(e)
opt(entry)
}
return e
return entry
}
// Entry slice field.