update lint
Some checks failed
Go Action / lint (push) Has been cancelled
Go Action / lint (pull_request) Has been cancelled

This commit is contained in:
2025-12-23 20:59:06 +03:00
parent b35976ce7b
commit 1637fb5119
20 changed files with 345 additions and 324 deletions

View File

@@ -2,6 +2,7 @@ package field
import (
"fmt"
"slices"
"time"
)
@@ -502,13 +503,6 @@ func (f Field) String() string {
return fmt.Sprintf("%s=%+v", f.Key, f.Value)
}
// String implent stringer.
func (f Field) IsKey(keys ...string) bool {
for _, key := range keys {
if key == f.Key {
return true
}
}
return false
return slices.Contains(keys, f.Key)
}