A package is a way to organize and reuse code in Go.
Every Go file belongs to a package.
Go provides many built-in packages like fmt, math, and time.
You import them using the import keyword.
You can create your own packages by placing Go files in a folder.
The package name must match the folder name.
You can import your custom package using its module path.
Then call exported functions (capitalized names).
In Go, names starting with a capital letter are exported (public).
Lowercase names are private to the package.
A module is a collection of packages managed together.
It defines your project and its dependencies.
The go.mod file tracks your module name and dependencies.
It is automatically created when you run go mod init.
Go modules automatically handle external libraries.
Use go get to install packages.
A typical Go project is organized using packages and modules.
They help you organize code and build scalable applications.
Be careful with these:
Create a custom package with a function and import it into main.