|
|
|
|
|
by waps
4234 days ago
|
|
Unfortunately having a code formatter does not make up for basic deficiencies in the language itself when it comes to datatypes. Basic example : http://stackoverflow.com/questions/19946992/sorting-a-map-of... (shortest way to sort an array of a custom datatype in go is around 50 lines of code, and requires you to write a custom sorting class) |
|
Convert the map values to a slice and then use the stdlib package sort to organize the data.