package main
import "fmt"
func my_func( args ...int) int {
sum := 0
for _,v := range args {
sum = sum + v
}
return sum;
}
func main() {
arr := []int{4}
sum := my_func(arr...)
fmt.Println("Sum is ", sum)
}
cGFja2FnZSBtYWluCmltcG9ydCAiZm10IgoKZnVuYyBteV9mdW5jKCBhcmdzIC4uLmludCkgaW50IHsKICAgc3VtIDo9IDAKICAgZm9yIF8sdiA6PSByYW5nZSBhcmdzIHsKICAgICAgc3VtID0gc3VtICsgdgogICB9CgogICByZXR1cm4gc3VtOwp9CgpmdW5jIG1haW4oKSB7CiAgICBhcnIgOj0gW11pbnR7NH0KICAgIHN1bSA6PSBteV9mdW5jKGFyci4uLikKICAgIGZtdC5QcmludGxuKCJTdW0gaXMgIiwgc3VtKQp9Cg==