Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Network Automation with Go

You're reading from   Network Automation with Go Learn how to automate network operations and build applications using the Go programming language

Arrow left icon
Product type Paperback
Published in Jan 2023
Publisher Packt
ISBN-13 9781800560925
Length 442 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (2):
Arrow left icon
Michael Kashin Michael Kashin
Author Profile Icon Michael Kashin
Michael Kashin
Nicolas Leiva Nicolas Leiva
Author Profile Icon Nicolas Leiva
Nicolas Leiva
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

Preface 1. Part 1: The Go Programming Language
2. Chapter 1: Introduction FREE CHAPTER 3. Chapter 2: Go Basics 4. Chapter 3: Getting Started with Go 5. Chapter 4: Networking (TCP/IP) with Go 6. Part 2: Common Tools and Frameworks
7. Chapter 5: Network Automation 8. Chapter 6: Configuration Management 9. Chapter 7: Automation Frameworks 10. Part 3: Interacting with APIs
11. Chapter 8: Network APIs 12. Chapter 9: OpenConfig 13. Chapter 10: Network Monitoring 14. Chapter 11: Expert Insights 15. Chapter 12: Appendix : Building a Testing Environment 16. Index 17. Other Books You May Enjoy

Installing Go on your computer

The Go download and install instructions (https://golang.org/doc/install#install) require you to download a file from https://go.dev/ and follow a couple of instructions. We include here the steps for Go version 17.7, which is the latest version available at the time of writing. Newer versions of Go 1 should continue to work.

Windows

To install Go on Windows, follow these steps:

  1. Download https://golang.org/dl/go1.17.7.windows-amd64.msi.
  2. Execute the go1.17.7.windows-amd64.msi file and follow the instructions.
  3. Open the Command Prompt window (cmd) and run go version to verify the installation.

Mac

If you have Homebrew installed, you can run brew install go. Otherwise, you can follow these steps:

  1. Download https://golang.org/dl/go1.17.7.darwin-amd64.pkg.
  2. Execute the go1.17.7.darwin-amd64.pkg file and follow the instructions.
  3. Open a Terminal and run go version to verify the installation.

Linux

Go is typically available as a system package in a Linux distribution, but is often an older version. Follow these steps to install a more recent release:

  1. Download https://golang.org/dl/go1.17.7.linux-amd64.tar.gz.
  2. Remove any existing Go installation with rm -rf /usr/local/go.
  3. Extract the archive you downloaded into /usr/local with tar -C /usr/local -xzf go1.17.7.linux-amd64.tar.gz.
  4. Add /usr/local/go/bin to the PATH environment variable with export PATH=$PATH:/usr/local/go/bin. To make this persistent, add this line as well in $HOME/.bash_profile. This last part is valid for bash, but you might want to do something similar if you use a different shell.
  5. Run go version to verify the installation

There you go! You can now download and install Go in your system without any hassle. To install a different version, just replace 17.7 in the instructions with a target version of your choice.

You have been reading a chapter from
Network Automation with Go
Published in: Jan 2023
Publisher: Packt
ISBN-13: 9781800560925
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime