Technical requirements
We assume that you have basic familiarity with the command line, Git, and GitHub. You can find the code examples for this chapter in the book's GitHub repository, https://github.com/PacktPublishing/Network-Automation-with-Go, in the ch02
folder.
To run the examples, follow these steps:
- Install Go 1.17 or later for your operating system. You can follow the instructions in Chapter 1, Introduction, in the Installing Go section or go to https://go.dev/doc/install.
- Clone the book's GitHub repository with
git clone
at https://github.com/PacktPublishing/Network-Automation-with-Go.git. - Change the directory to an example's folder –
cd Network-Automation-with-Go/ch02/pong
. - Execute
go run main.go
.