白板的微信
func DoSomething(a *A) { // a is a pointer to given argument of type A b = a // b is a copy of a, which is also the same pointer // this is useful to change the given object directly}func DoSomething(a A) { // a is a copy of the given object type A b = &a // b is the pointer of a}请记住,指针是一个保存内存地址的变量。