0
0
Fork 0

typo in lookupPropertyPathPart() func name

This commit is contained in:
Steve Yen 2015-11-23 09:27:17 -08:00
parent ab3188becb
commit 19c43af6d4
1 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ func lookupPropertyPath(data interface{}, path string) interface{} {
current := data
for _, part := range pathParts {
current = lookupProptyPathPart(current, part)
current = lookupPropertyPathPart(current, part)
if current == nil {
break
}
@ -28,7 +28,7 @@ func lookupPropertyPath(data interface{}, path string) interface{} {
return current
}
func lookupProptyPathPart(data interface{}, part string) interface{} {
func lookupPropertyPathPart(data interface{}, part string) interface{} {
val := reflect.ValueOf(data)
typ := val.Type()
switch typ.Kind() {