File tree Expand file tree Collapse file tree 4 files changed +36
-2
lines changed
Expand file tree Collapse file tree 4 files changed +36
-2
lines changed Original file line number Diff line number Diff line change @@ -112,3 +112,7 @@ The core team regularly looks at pull requests. We will provide
112112feedback as soon as possible. After receiving our feedback, please respond
113113within two weeks. After that time, we may close your PR if it isn't
114114showing any activity.
115+
116+ ## Support
117+
118+ Maintainers can provide limited support to contributors on discord: https://discord.gg/W4txy5AeKM
Original file line number Diff line number Diff line change 33[ ![ build workflow] ( https://github.com/redis/go-redis/actions/workflows/build.yml/badge.svg )] ( https://github.com/redis/go-redis/actions )
44[ ![ PkgGoDev] ( https://pkg.go.dev/badge/github.com/redis/go-redis/v9 )] ( https://pkg.go.dev/github.com/redis/go-redis/v9?tab=doc )
55[ ![ Documentation] ( https://img.shields.io/badge/redis-documentation-informational )] ( https://redis.uptrace.dev/ )
6+ [ ![ Go Report Card] ( https://goreportcard.com/badge/github.com/redis/go-redis/v9 )] ( https://goreportcard.com/report/github.com/redis/go-redis/v9 )
67[ ![ codecov] ( https://codecov.io/github/redis/go-redis/graph/badge.svg?token=tsrCZKuSSw )] ( https://codecov.io/github/redis/go-redis )
7- [ ![ Chat] ( https://discordapp.com/api/guilds/752070105847955518/widget.png )] ( https://discord.gg/rWtp5Aj )
8+
9+ [ ![ Discord] ( https://img.shields.io/discord/697882427875393627.svg?style=social&logo=discord )] ( https://discord.gg/W4txy5AeKM )
10+ [ ![ Twitch] ( https://img.shields.io/twitch/status/redisinc?style=social )] ( https://www.twitch.tv/redisinc )
11+ [ ![ YouTube] ( https://img.shields.io/youtube/channel/views/UCD78lHSwYqMlyetR0_P4Vig?style=social )] ( https://www.youtube.com/redisinc )
12+ [ ![ Twitter] ( https://img.shields.io/twitter/follow/redisinc?style=social )] ( https://twitter.com/redisinc )
13+ [ ![ Stack Exchange questions] ( https://img.shields.io/stackexchange/stackoverflow/t/go-redis?style=social&logo=stackoverflow&label=Stackoverflow )] ( https://stackoverflow.com/questions/tagged/go-redis )
814
915> go-redis is the official Redis client library for the Go programming language. It offers a straightforward interface for interacting with Redis servers.
1016
@@ -44,7 +50,7 @@ in the `go.mod` to `go 1.24` in one of the next releases.
4450## Resources
4551
4652- [ Discussions] ( https://github.com/redis/go-redis/discussions )
47- - [ Chat] ( https://discord.gg/rWtp5Aj )
53+ - [ Chat] ( https://discord.gg/W4txy5AeKM )
4854- [ Reference] ( https://pkg.go.dev/github.com/redis/go-redis/v9 )
4955- [ Examples] ( https://pkg.go.dev/github.com/redis/go-redis/v9#pkg-examples )
5056
Original file line number Diff line number Diff line change @@ -81,6 +81,8 @@ func appendArg(dst []interface{}, arg interface{}) []interface{} {
8181 return dst
8282 case time.Time , time.Duration , encoding.BinaryMarshaler , net.IP :
8383 return append (dst , arg )
84+ case nil :
85+ return dst
8486 default :
8587 // scan struct field
8688 v := reflect .ValueOf (arg )
Original file line number Diff line number Diff line change @@ -7209,6 +7209,17 @@ var _ = Describe("Commands", func() {
72097209 Expect (err ).NotTo (HaveOccurred ())
72107210 Expect (vals ).To (Equal ([]interface {}{int64 (12 ), proto .RedisError ("error" ), "abc" }))
72117211 })
7212+
7213+ It ("returns empty values when args are nil" , func () {
7214+ vals , err := client .Eval (
7215+ ctx ,
7216+ "return {ARGV[1]}" ,
7217+ []string {},
7218+ nil ,
7219+ ).Result ()
7220+ Expect (err ).NotTo (HaveOccurred ())
7221+ Expect (vals ).To (BeEmpty ())
7222+ })
72127223 })
72137224
72147225 Describe ("EvalRO" , func () {
@@ -7232,6 +7243,17 @@ var _ = Describe("Commands", func() {
72327243 Expect (err ).NotTo (HaveOccurred ())
72337244 Expect (vals ).To (Equal ([]interface {}{int64 (12 ), proto .RedisError ("error" ), "abc" }))
72347245 })
7246+
7247+ It ("returns empty values when args are nil" , func () {
7248+ vals , err := client .EvalRO (
7249+ ctx ,
7250+ "return {ARGV[1]}" ,
7251+ []string {},
7252+ nil ,
7253+ ).Result ()
7254+ Expect (err ).NotTo (HaveOccurred ())
7255+ Expect (vals ).To (BeEmpty ())
7256+ })
72357257 })
72367258
72377259 Describe ("Functions" , func () {
You can’t perform that action at this time.
0 commit comments