I have a string that is separated by spaces, in this example, its a command: ls -al.
Go has a method exec.Command that needs to accept this command as multiple arguments, I call it like so: exec.Command("ls", "-al")
Is there a way to take a arbitrary string, split it by spaces, and pass all of its values as arguments to the method?