The previous chapter talked about developing packages, modules, and functions in Go, as well as working with text and HTML templates with the help of the text/template and html/template packages. The chapter also explained the use of the syscall package.
This chapter is going to teach you three very interesting, handy, and somewhat advanced Go concepts: reflection, interfaces, and type methods. Although Go interfaces are used all the time, reflection is not, mainly because it is not usually necessary for your programs to use it. Furthermore, you will learn about type assertions, the Delve debugger, and object-oriented programming in Go. Lastly, this chapter will present a short introduction to git and GitHub.
Therefore, in this chapter, you will learn about:
- Type methods
- Go interfaces
- Type assertions
- Developing and using your own interfaces...