In the process of familiarizing myself with Go and goroutines I have hit a road block with executing commands. The format of these commands are:
sudo find /folde
exec.Command()
will ask the kernel to execute the given process directly. However, the command you are passing is a string of multiple programs hooked together by a shell script.
If you want to execute a shell script, you should use something like this:
cmd := exec.Command("/bin/sh", "-c", "sudo find ...")