what’s untyped constant in Go
tags: learning go programming tbc
content
in this example:
go-type-definition-and-alias#untyped-constant
-
MyIntis not the exact same asint -
but this code works
-
this is because
1is an untyped constant
tags: learning go programming tbc
in this example:
go-type-definition-and-alias#untyped-constant
MyInt is not the exact same as int
but this code works
this is because 1 is an untyped constant