package main import ( "fmt" "go/types" ) func main() { var x int fmt.Println(types.TypeString(types.TypeOf(x))) }This example declares a variable `x` of type `int` and uses TypeName to retrieve the type name of `x` as a string. The output of this program will be "int". This package is a part of the Go standard library.