golang package | Go | Golang tutorial | what is packages #golangtutorial #programming #golanguage



golang package | Go | Golang tutorial | what is packages #golangtutorial #programming #golanguage

golang package | Go | Golang tutorial | what is  packages #golangtutorial #programming #golanguage

What is package?
A package is a collection of source files in the same directory that are compiled together

Name convention:
packages are given lower case, single-word names
there should be no need for underscores or mixedCaps.

Example:
package mathutils