2
I need to pass all lines of an array as parameters of a function, but I can’t leave it dynamic...
What I want to leave 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 am 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?
Thank you very much, it worked perfectly!!
– Gabriel Souza