I can use this out, err := exec.Command("git", "log").Output() to get an output of the command which will run in the same path as the executable location.
out, err := exec.Command("git", "log").Output()
How do I specify in which folder I want to run the command?
1.4m articles
1.4m replys
5 comments
57.0k users