Variables in Go
A variable is a container that stores a value.
Examples
Create a main.go
file and add the following contents below
// main.go
package main
import "fmt"
func main() {
name := "Jack"
fmt.Println(name)
}
write go run main.go
on the terminal, the below should be your output.
Jack
name is a variable (container) that holds a value of "Jack"
(without the quotes)