Learn how to execute external system commands from within your Golang programs using the exec package. Explore the Command struct, Command function, and various methods like Run, Wait, and LookPath. Discover techniques for creating and executing commands, including the oneliner approach, and gain practical insights into integrating system commands into your Go projects.
Overview
Syllabus
Intro
Overview
Command struct
Command function
How to use it
Creating the command
Oneliner approach
Run run
Wait
LookPath
Taught by
Donald Feury