[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 <grufwub@gmail.com>
Co-committed-by: kim <grufwub@gmail.com>
This commit is contained in:
kim 2025-08-22 16:04:22 +02:00 committed by kim
commit 383e41e3e5
6 changed files with 42 additions and 22 deletions

View file

@ -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.