Changed comment. The utility can be used to sort any map[string]float64 by value, and not just availablePower.
This commit is contained in:
parent
63a7f0acb5
commit
1321010d6f
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ The Pair and PairList have been taken from google groups forum,
|
||||||
https://groups.google.com/forum/#!topic/golang-nuts/FT7cjmcL7gw
|
https://groups.google.com/forum/#!topic/golang-nuts/FT7cjmcL7gw
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Utility struct that helps in sorting the available power by value.
|
// Utility that helps in sorting a map[string]float64 by value.
|
||||||
type Pair struct {
|
type Pair struct {
|
||||||
Key string
|
Key string
|
||||||
Value float64
|
Value float64
|
||||||
|
|
Reference in a new issue