mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 01:12:24 -05:00
[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:
parent
a79f83cbde
commit
383e41e3e5
6 changed files with 42 additions and 22 deletions
9
vendor/codeberg.org/gruf/go-structr/index.go
generated
vendored
9
vendor/codeberg.org/gruf/go-structr/index.go
generated
vendored
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue