在golang中打印一个空接口数组?

I have a struct with a field of the form field []interface{}. If I print the field, I get back a pointer reference. If I try to dereference the field, I get an error "invalid indirect".

The code is below:

type MyType struct {
   field []interface{}
}
myType := //create a MyType. Field is just an array of numbers
println(myType.field) // prints a pointer reference, ex: [1/1]0xc420269aa0
println(*(myType.field)) // doesn't compile

How do I print the values in myType.field?

The answer is to loop through the array, or even better, use fmt.Println.

func dump(items []interface{}) {
 for i := 0; i < len(items); i++ {
    fmt.Println(items[i])
   }
}
// OR
fmt.Println(items)