go-tour/type-inference.go

9 lines
95 B
Go
Raw Permalink Normal View History

2020-02-05 03:44:36 +00:00
package main
import "fmt"
func main() {
v := 42
fmt.Printf("v is of type %T\n", v)
}