Functions declared at the package level are accessible throughout the package. If the name starts with uppercase, other packages can use it too:
package mymath
func Add(a, b int) int { // exported
return a + b
}
func helper() int { // unexported
return 42
}
Add is public because it starts with uppercase. helper is private to the package. This convention controls your API without special keywords.