golang get type of variable

package main

import (
    "fmt"
    "reflect"
)

func main() {
    var x int = 5
    fmt.Println(reflect.TypeOf(x))
}