Answers for "const in golang"

Go
1

golang const iota

const (
	C0 = iota
	C1
	C2
)
fmt.Println(C0, C1, C2) // "0 1 2"
Posted by: Guest on March-23-2021
1

consta t golang

const sampleA = 3.14
const sampleB = "DOODOOL TAALAA"
Posted by: Guest on December-12-2020

Browse Popular Code Answers by Language