Reflection.TypeOf是* string并返回0xc0001ae4a8-如何打印

This is my code from retrieving results from the Go AWS client:

  fmt.Println("Success", reflect.TypeOf(result.Reservations[0].Instances[0].Architecture))
  Success *string

fmt.Println("Success", result.Reservations[0].Instances[0].Architecture)
Success 0xc0001ae4a8

I don't know why this is happening.

result.Reservations[0].Instances[0].Architecture is a pointer to a string. The type prints as *string. The value prints as hex.

If your goal is to print the value of the string, then dereference the pointer:

fmt.Println("Success", *result.Reservations[0].Instances[0].Architecture)