I\'d like to open a PDF file in the filesystem from go with the default application. How can I do that? From the command line I just write the filename of the pdf file and the a
You must launch cmd /C start foo.pdf. This will let the start command find the correct executable for you.
cmd /C start foo.pdf
cmd := exec.Command("cmd", "/C start path_to_foo.pdf")