The previous chapter talked about developing and using custom data structures like linked lists, binary trees, and hash tables, as well as generating random numbers and difficult-to-guess passwords in Go and performing matrix operations.
The main focus of this chapter is Go packages, which are the Go way of organizing, delivering, and using code. The most common components of a Go package are functions, which are pretty flexible in Go. Additionally, this chapter will talk about Go modules, which are packages with versions. In the last part of this chapter, you will see some advanced packages that belong to the Go standard library in order to better understand that not all Go packages are created equal.
In this chapter, you will learn about the following topics:
- Developing functions in Go
- Anonymous functions