func twoSum(numbers []int, target int) []int { tmpMap := make(map[int]int, 10) for idx, val := range numbers { v, ok := tmpMap[target-val] if ok { return []int{v + 1, idx + 1} } tmpMap[val] = idx } return []int{-1, -1} }