I need to pass all the rows of an array as parameters of a function, but I can not make it dynamic ...
What I want to make dynamic
args = append(args, u.yy)
args = append(args, u.xx)
args = append(args, u.dd)
args = append(args, u.kk)
smt.Exec(args[0], args[0], args[3], args[4])
What I'm doing
args = append(args, u.yy)
args = append(args, u.xx)
args = append(args, u.dd)
args = append(args, u.kk)
smt.Exec(args)
//ou
smt.Exec(args[:])
But it's not working ... Can you help me?