0
0
Fork 0

change another variable capitalization

This commit is contained in:
Marty Schoch 2014-09-02 14:22:21 -04:00
parent bbc6fadf69
commit d75d836c09
2 changed files with 4 additions and 4 deletions

View File

@ -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
}

View File

@ -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) {