change another variable capitalization
This commit is contained in:
parent
bbc6fadf69
commit
d75d836c09
|
@ -614,7 +614,7 @@ func getFieldName(pathString string, path []string, fieldMapping *FieldMapping)
|
|||
if fieldMapping.Name != nil && *fieldMapping.Name != "" {
|
||||
parentName := ""
|
||||
if len(path) > 1 {
|
||||
parentName = encodePath(path[:len(path)-1]) + pATH_SEPARATOR
|
||||
parentName = encodePath(path[:len(path)-1]) + pathSeparator
|
||||
}
|
||||
fieldName = parentName + *fieldMapping.Name
|
||||
}
|
||||
|
|
|
@ -50,14 +50,14 @@ func lookupProptyPathPart(data interface{}, part string) interface{} {
|
|||
return nil
|
||||
}
|
||||
|
||||
const pATH_SEPARATOR = "."
|
||||
const pathSeparator = "."
|
||||
|
||||
func decodePath(path string) []string {
|
||||
return strings.Split(path, pATH_SEPARATOR)
|
||||
return strings.Split(path, pathSeparator)
|
||||
}
|
||||
|
||||
func encodePath(pathElements []string) string {
|
||||
return strings.Join(pathElements, pATH_SEPARATOR)
|
||||
return strings.Join(pathElements, pathSeparator)
|
||||
}
|
||||
|
||||
func mustString(data interface{}) (string, bool) {
|
||||
|
|
Loading…
Reference in New Issue