fixed naming convensions to be camel cased. Reformatted the code.
This commit is contained in:
parent
55ea017a9a
commit
50d1d79051
6 changed files with 147 additions and 147 deletions
|
@ -37,11 +37,11 @@ func OrderedKeys(plist PairList) ([]string, error) {
|
|||
if plist == nil {
|
||||
return nil, errors.New("Invalid argument: plist")
|
||||
}
|
||||
ordered_keys := make([]string, len(plist))
|
||||
orderedKeys := make([]string, len(plist))
|
||||
for _, pair := range plist {
|
||||
ordered_keys = append(ordered_keys, pair.Key)
|
||||
orderedKeys = append(orderedKeys, pair.Key)
|
||||
}
|
||||
return ordered_keys, nil
|
||||
return orderedKeys, nil
|
||||
}
|
||||
|
||||
// determine the max value
|
||||
|
|
Reference in a new issue