package main
import (
"fmt"
)
func main() {
result := make(map[int]int)
s := []int{1, 1, 1, 2, 3, 4, 5, 5, 6, 7, 7}
for _, v := range s {
result[v]++
}
fmt.Println(result)
}
for k, v := range result {
if v >= 2 {
fmt.Printf("key = %d, count = %d\n", k, v)
}
}