int
The int keyword names the signed 32-bit integer type.
Syntax
Use int in variable declarations:
var count int
var limit int = 10
Use int in function parameter and return annotations:
func square(value int) int {
return value * value
}
When a variable definition has an initial value, Matchbox can infer int:
var count = 10
Function parameter and return annotations can also be omitted; they default to int in 0.2.
See Types for the int range and type rules.