func showResults(pageList safeslice.SafeSlice) { list := pageList.Close() counts := make(map[string]int) for _, page := range list { // uniquify counts[page.(string)] += 1 } for page, count := range counts { fmt.Printf("%8d %s\n", count, page) } }