Table of Contents
Prefacexiii
Part 1: The Go Programming Language
1
Introduction3
Technical requirements4
Networking and Go4
Why Go?5
Non-technical reasons5
The future of Go8
Technical reasons8
Go for networking13
Go versus Python16
Code execution16
Type system17
Performance17
Ease of use17
Memory management18
Syntax18
Failure handling18
Concurrency19
Community 19
Installing Go on your computer20
Windows20
Mac20
Linux21
Summary21
Further reading21
2
Go Basics25
Technical requirements26
What is Go?26
Go Proverbs29
Go source code files30
Packages31
Go modules32
Importing packages33
Comments34
Names36
Executing your Go code37
Running Go programs online38
The Go Playground38
The Go Play Space40
A look into the Future42
The Go tool43
Build44
Run46 ...
Get Network Automation with Go now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.