Run ❯
Get your
own
website
×
Change Orientation
package main import ("fmt") func main() { var a bool = true // Boolean var b int = 5 // Integer var c float32 = 3.14 // Floating point number var d string = "Hi!" // String fmt.Println("Boolean: ", a) fmt.Println("Integer: ", b) fmt.Println("Float: ", c) fmt.Println("String: ", d) }
Boolean: true Integer: 5 Float: 3.14 String: Hi!