Constants

Constants and variables are memory spaces reserved for the type of data you want to work with.

Constants are fixed values ​​that you will use in your program and variables are values ​​that need to vary during the runtime of your program.

The following types are valid for storing in constants:

  • boolean
  • rune
  • integer
  • floating-point
  • complex
  • string

// Declaration
const name="value"
                        
constants.go