Block Scope
package main
// scoped to the entire "main" package (basically global)
var age = 19
func sendEmail() {
// scoped to the "sendEmail" function
name := "Jon Snow"
for i := 0; i < 5; i++ {
// scoped to the "for" body
email := "snow@winterfell.net"
}
}