add bracket format
Some checks failed
continuous-integration/drone/push Build is running
continuous-integration/drone/pr Build is failing

This commit is contained in:
andrey
2024-01-03 19:32:11 +03:00
parent acaa46b73f
commit 11a73b8d84
6 changed files with 119 additions and 7 deletions

View File

@@ -501,3 +501,14 @@ type Field struct {
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
}