Go has strict basic data types (statically typed). You cannot add a number (int) with text (string) directly.
Common Types
true or false.Formatting
When printing mixed data, we often use Printf (Print Format):
%T: Shows the variable's data type.%v: Shows the variable's value (default format).MAIN.GO
package mainimport "fmt"func main() { var isActive bool = true var age int = 25 var price float64 = 19.99 // \n is used to create a new line (Enter) fmt.Printf("Type: %T, Value: %v\n", isActive, isActive) fmt.Printf("Type: %T, Value: %v\n", age, age) fmt.Printf("Type: %T, Value: %v\n", price, price)}