Introduction
Explore the fundamentals of Go packages and functions, including organization, visibility conventions, resource management with defer, and module versioning. Understand how to develop custom packages, use GitHub for package storage, and employ tools for creating well-structured, documented Go code.
We'll cover the following...
We'll cover the following...
Introduction to packages and functions
The main focus of this chapter is Go packages, which are Go’s way of organizing, delivering, and using code. The most common component of packages is functions, which are pretty flexible and powerful and are used for data processing and manipulation. Go also supports modules, which ...