Go supports constants, which are variables that cannot change their values. Constants in Go are defined with the help of the const keyword.
The main benefit you get from using constants in your programs is the guarantee that their value will not change during program execution. Strictly speaking, the value of a constant variable is defined at compile time not at run time.
Behind the scenes, Go uses Boolean, string, or number as the type for storing a constant variable because this gives Go more flexibility when dealing with constants.
You can define a new constant as follows:
const HEIGHT = 200
Please note that in Go we do not use ALL CAPS for constants; this is just a personal preference of mine.
Additionally...