You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
383 B
Go

package main
import (
"fmt"
"reflect"
)
var (
// alternative method
// name, course, module = "Nigel", "Docker Deep Dive", 3.2
name string = "Drew"
course string = "Docker Deep Dive"
module float64 = 3.2
)
func main() {
fmt.Println("Name is", name, "and is of type", reflect.TypeOf(name))
fmt.Println("Module is", module, "and is of type", reflect.TypeOf(module))
}