Introduction
Let’s get an overview of packages and functions.
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 are packages with version numbers. This chapter will also explain the operation of defer
, which is used for cleaning up and releasing resources.
Get hands-on with 1400+ tech skills courses.