Packages, variables, data types, and pointers represent the most basic building blocks of the Go language. In this section, we'll cover them one by one from a practical point of view.
Packages, variables, data types, and pointers
Packages
Any Go program consists of one or more packages. Each package is basically a folder, which contains one or more Go files. Every single Go code file you write must belong to a package. Package folders are found inside the src folder of your Go workspace.
When you write Go code, you declare your package name at the very top of your Go file. Here is what this looks like in code:
package mypackage
Here, mypackage is the name of the package that my Go file belongs to. It's idiomatic...