Question: Slice of strings as multiple strings

Written by
reddit
Link to Post

https://www.reddit.com/r/golang/comments/bndoqd/question_slice_of_strings_as_multiple_strings/ by 

I have a problem, I want to pass some arguments to exec.Command and exec.Command expects strings separated by a comma but I only have a slice of strings. If I join them, they would be one string which is not what I want.

So my question is: How do I use a slice of strings as multiple strings?

Thank you in advance.

submitted by /u/lucaoam
[link] [comments]

Article Tags:
· ·
Article Categories:
reddit

Leave a Reply