9951 explained code solutions for 126 technologies


golangHow to declare and use constant


package main

const my_value int = 123 

func main() {
  print(my_value)
}ctrl + c
package main

default package declaration

func main() {

declare main function that will be launched automatically

const

defines constant value

my_value

name of the constant

int

constant type

123

constant value