Get maximum int key from a map of ints
You could remove the first range by initialising maxNumber with math.MinInt(32|64) depending on the architecture. E.g. on 32-bit systems:

func max(numbers map[int]bool) (maxNumber int) {
    maxNumber = math.MinInt32
    for n := range numbers {
        if n &gt; maxNumber {
            maxNumber = n
        }
    }
    return maxNumber
}


You can make it work with either system using build tags.