bump go-structr to v0.8.5 to improve memory usage (#2955)

This commit is contained in:
kim
2024-06-03 11:03:35 +00:00
committed by GitHub
parent addaba05c0
commit 6ed6824d5d
7 changed files with 45 additions and 63 deletions

View File

@ -22,7 +22,7 @@ func (k Key) Key() string {
// Equal returns whether keys are equal.
func (k Key) Equal(o Key) bool {
return k.key == o.key
return (k.key == o.key)
}
// Value returns the raw slice of
@ -33,7 +33,7 @@ func (k Key) Values() []any {
// Zero indicates a zero value key.
func (k Key) Zero() bool {
return k.raw == nil
return (k.raw == nil)
}
var buf_pool sync.Pool