1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-28 06:42:00 +03:00

fix: change serialize key "key" to "redis"

This commit is contained in:
정보교
2023-01-19 13:00:04 +09:00
parent 1fdcbf86bb
commit 913936b4cd
2 changed files with 6 additions and 6 deletions

View File

@ -198,10 +198,10 @@ func ExampleClient_SetEX() {
}
func ExampleClient_HSet() {
// Set "key" tag for hash key
// Set "redis" tag for hash key
type ExampleUser struct {
Name string `key:"name"`
Age int `key:"age"`
Name string `redis:"name"`
Age int `redis:"age"`
}
items := ExampleUser{"jane", 22}