Predeclared type

Go int32 type

Signed 32-bit integer, range -2147483648 to 2147483647. rune is an alias for int32, not a distinct type. Example output: '100000'.

Formal Syntax & Structure

go syntaxgo
int32

Working Example

Example Snippetgo
package main
import (  "fmt")
func main() {  var distance int32 = 100000  fmt.Println(distance)}
Go Reference