Run ❯
Get your
own
website
×
Change Orientation
package main import ("fmt") func main() { var i = 15.5 var txt = "Hello World!" fmt.Printf("%v\n", i) fmt.Printf("%#v\n", i) fmt.Printf("%v%%\n", i) fmt.Printf("%T\n", i) fmt.Printf("%v\n", txt) fmt.Printf("%#v\n", txt) fmt.Printf("%T\n", txt) }
15.5 15.5 15.5% float64 Hello World! "Hello World!" string