So in Python and Ruby there is the splat operator (*) for unpacking an array as arguments. In Javascript there is the .apply() function. Is there a way of unpacking an array/slice as function arguments in Go? Any resources for this would be great as well!
Something along the lines of this:
func my_func(a, b int) (int) {
    return a + b
}
func main() {
    arr := []int{2,4}
    sum := my_func(arr)
}
 
     
     
     
     
     
    