Chapter 6Controlling Processes
So far, you’ve developed several command-line tools with Go by executing tasks with your own algorithms. In some situations, it’s easier to delegate some of these tasks to more specialized programs that are already available on your system. For example, you may want to use git to execute version control commands against a Git repository or launch Firefox to display a web page on a browser, as you did in Adding an Auto-Preview Feature, when you built the Markdown Preview tool.
In some cases, these specialized programs have an API available that you can call directly from your program. When this isn’t available, you have to use their functionality by executing external commands from your Go program.
Go provides ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access