package benchmarks // Sum 可变参数累加 func Sum(nums ...int) int { total := 0 for _, v := range nums { total += v } return total }