Skip to content
Snippets Groups Projects
Verified Commit 91924423 authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

fix: pointer should retur pointer not element #11

parent 6d5a6b54
No related branches found
No related tags found
No related merge requests found
......@@ -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() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment