#"strArray..." gives []string
10 messages · Page 1 of 1 (latest)
want (string, ...string)
So you can only give it one string and one slice unpack
You can't give it multiple strings and then unpack a slice
can I combine them all in 1 slice and unpack it?
or 1 normal and others with unpacking
Not really in an elegant way, but yes.
If you can get those to the beginning of the slice further up in your code that would be cleanest
Otherwise there's technically append([]string{arg1, arg2}, strArray...)...
Thank you very much! it works 