I'm sure this is a simple question, but I keep bumping into this. I see others are as well.
I see some people create a for
loop and run through the slice as to create a string, is there an easier way to convert a []string
to a string
?
Will sprintf
do it?
You can use strings.Join(arr []string, seperator string) string
, as in pretty much any other language I know