diff --git a/get.go b/get.go index 90c2b1cc25a621455263d8abd8e48844ecf1fcdd..8af7435b70b5e18e324c205d7c92c50055e4c569 100644 --- a/get.go +++ b/get.go @@ -60,9 +60,9 @@ func GetValue[D any](obj D, keyWithDots string) (any, error) { return nil, newInvalidPathError(keyWithDots) } - for v.Kind() == reflect.Ptr { - v = v.Elem() - } + //for v.Kind() == reflect.Ptr { + // v = v.Elem() + //} // check if v can interface if !v.CanInterface() {