bool, string, int, float32, float64
array, struct
pointer, slice, channel, function
func DoSomething(t interface{}) {
switch reflect.TypeOf(t).name() {
// chang actin based on type expected
}
}
Dosomething(interface1)
Dosomething(interface2)
go build
go install
go get
go doc
go test