Chapter 1, Go and the Operating System, begins by talking about the history of Go and the advantages of Go before describing the godoc utility and explaining how you can compile and execute Go programs. After that, it talks about printing output and getting user input, working with the command-line arguments of a program and using log files. The final topic in the first chapter is error handling, which plays a key role in Go.
Chapter 2, Understanding Go Internals, discusses the Go garbage collector and the way it operates. Then, it talks about unsafe code and the unsafe package, how to call C code from a Go program, and how to call Go code from a C program.
After that, it showcases the use of the defer keyword and presents ...