1 Star 0 Fork 0

redis-go/redis

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
reflect_go118.go 402 Bytes
一键复制 编辑 原始数据 按行查看 历史
k3x 提交于 2022-09-25 02:53 +08:00 . 同步: v1.8.9 d685447 2022-07-06 12:30:13 +0100
//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)
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/redis-go/redis.git
git@gitee.com:redis-go/redis.git
redis-go
redis
redis
v1.8.9

搜索帮助