All the Go features that you learned in the previous chapter are extremely handy and you will be using them all the time. However, there is nothing as rewarding as being able to see and understand what is going on in the background and how Go operates behind the scenes.
In this chapter, you are going to learn about the Go garbage collector and the way it works. Additionally, you will find out how to call C code from your Go programs, which you might find indispensable in some situations. However, you will not need to use this capability too often because Go is a very capable programming language.
Furthermore, you will learn how to call Go code from your C programs, along with how to use the panic() and recover() functions and the defer keyword.
This chapter covers:
- The Go compiler
- How garbage collection works in Go
- How to check the operation of the garbage...