Get pointer on var obtained via interface
问题 In the following code var a int var b interface{} b = a fmt.Printf("%T, %T \n", a, &a) fmt.Printf("%T, %T \n", b, &b) output: int, *int int, *interface {} I would expect the type of &b to be a pointer on int. I have two questions: 1) Why is it a pointer on interface{} ? 2) How could I get a pointer on the original type ? 回答1: &b => this is the address operator applied on the variable b , whose type is interface{} . So &b will be a pointer of type *interface{} , pointing to the variable b . If