diff options
| author | 2025-08-22 16:04:22 +0200 | |
|---|---|---|
| committer | 2025-08-22 16:04:22 +0200 | |
| commit | 383e41e3e50f3cab3a0772ab59525707ad2c63da (patch) | |
| tree | da4a535b0329e9efd92c942039db420f05107c65 /vendor/codeberg.org/gruf/go-structr/index.go | |
| parent | [chore] update dependencies (#4386) (diff) | |
| download | gotosocial-383e41e3e50f3cab3a0772ab59525707ad2c63da.tar.xz | |
[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>
Diffstat (limited to 'vendor/codeberg.org/gruf/go-structr/index.go')
| -rw-r--r-- | vendor/codeberg.org/gruf/go-structr/index.go | 9 |
1 files changed, 3 insertions, 6 deletions
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. |
