Test library github.com/gomodule/redigo/redis

This commit is contained in:
MathieuHa
2022-10-17 20:58:27 +02:00
parent 87ed9e9c4e
commit 4058836678
77 changed files with 4176 additions and 17306 deletions
+16
View File
@@ -0,0 +1,16 @@
//go:build go1.18
// +build go1.18
package redis
import (
"reflect"
)
// fieldByIndexErr returns the nested field corresponding to index.
// It returns an error if evaluation requires stepping through a nil
// pointer, but panics if it must step through a field that
// is not a struct.
func fieldByIndexErr(v reflect.Value, index []int) (reflect.Value, error) {
return v.FieldByIndexErr(index)
}