Closed quasilyte closed 5 years ago
The (*x.(*T)).M() is identical to x.(*T).M(), since Go does one level auto-deref automatically.
(*x.(*T)).M()
x.(*T).M()
Note that *x in the code above does not perform extra copying as the machine code generated for both forms will be the same.
Signed-off-by: Iskander Sharipov quasilyte@gmail.com
Ok. Thanks @Quasilyte.
The
(*x.(*T)).M()
is identical tox.(*T).M()
, since Go does one level auto-deref automatically.Note that *x in the code above does not perform extra copying as the machine code generated for both forms will be the same.
Signed-off-by: Iskander Sharipov quasilyte@gmail.com