From 383e41e3e50f3cab3a0772ab59525707ad2c63da Mon Sep 17 00:00:00 2001 From: kim Date: Fri, 22 Aug 2025 16:04:22 +0200 Subject: [chore] bump go-structr to v0.9.9 (#4390) this improves handling of zero value keys. not something we bump into often, but a useful fix to have in place. Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4390 Co-authored-by: kim Co-committed-by: kim --- vendor/codeberg.org/gruf/go-structr/index.go | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'vendor/codeberg.org/gruf/go-structr/index.go') diff --git a/vendor/codeberg.org/gruf/go-structr/index.go b/vendor/codeberg.org/gruf/go-structr/index.go index 9fbdcf112..d5bd5562e 100644 --- a/vendor/codeberg.org/gruf/go-structr/index.go +++ b/vendor/codeberg.org/gruf/go-structr/index.go @@ -21,12 +21,9 @@ type IndexConfig struct { // be specified using periods. An example: // "Username,Favorites.Color" // - // Note that nested fields where the nested - // struct field is a ptr are supported, but - // nil ptr values in nesting will result in - // that particular value NOT being indexed. - // e.g. with "Favorites.Color" if *Favorites - // is nil then it will not be indexed. + // If a nested field encounters a nil pointer + // along the way, e.g. "Favourites == nil", then + // a zero value for "Favorites.Color" is used. // // Field types supported include any of those // supported by the `go-mangler/v2` library. -- cgit v1.2.3