// basic types in go:
// * bool
// * string
// * int int8 int16 int32 int64
// * uint uint8 uint16 uint32 uint64 uintptr
// * byte (alias for uint8)
// * rune (alias for int32, represents Unicode code point)
// * float32 float64
// * complex64 complex128

package main

import "fmt"

func main() {
    // variable declaration factored into a block
    var (
        ToBe   bool       = true
        MaxInt uint64     = 1 << 64 - 1
        Cmplx  complex128 = 4.3 + 2.2i
    )

    // %T and %v specifiers in fmt.Printf
    fmt.Printf("Type: %T Value: %v\n", ToBe, ToBe)
    fmt.Printf("Type: %T Value: %v\n", MaxInt, MaxInt)
    fmt.Printf("Type: %T Value: %v\n", Cmplx, Cmplx)
}

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: