Values

Tengo has several built-in value types: strings, integers, floats, booleans, arrays, and maps.

fmt := import("fmt")
fmt.println("ten" + "go")
fmt.println("1+1 = ", 1+1)
fmt.println("7/2 = ", 7/2)
fmt.println("7.0/2.0 = ", 7.0/2.0)
fmt.println(true && false)
fmt.println(true || false)
fmt.println(!true)

try it

tengo
1+1 = 2
7/2 = 3
7.0/2.0 = 3.5
false
true
false
loading…