1
0
mirror of https://github.com/redis/go-redis.git synced 2025-09-11 18:10:43 +03:00

fix: nil pointer dereferencing in writeArg (#3271)

* fixed bug with nil dereferencing in writeArg, added hset struct example, added tests

* removed password from example

* added omitempty

* reverted xxhash versioning

* reverted xxhash versioning

* removed password

* removed password

---------

Co-authored-by: Nedyalko Dyakov <nedyalko.dyakov@gmail.com>
This commit is contained in:
Ali Error
2025-02-20 17:54:11 +03:00
committed by ofekshenawa
parent e010f2e2ff
commit 26e2430865
7 changed files with 274 additions and 29 deletions

View File

@@ -0,0 +1,7 @@
# Example for setting struct fields as hash fields
To run this example:
```shell
go run .
```