It cannot work like this--- var i interface{} var s []string = []string{"a", "b"} i = s log.Infof("%T, %v", i, i)