Photo by James Harrison on Unsplash

Like most modern programming languages, Go uses variables for working with data. So when you create a variable, the underlying data for that variable gets saved to system memory. You can then use the variable to access, update, or delete that data.

The var statement

There are several ways to create variables, one of them is by using the var statement.