What is the difference between these two writing methods?

Aug.12,2021

it is recommended to take a look at the related description in the Go language Bible: 6.2. The greatest use of methods based on pointer objects


pointer receiver is that you can modify the value pointed to by receiver


u1 = User{}
u2 = &User{}

u1.Get1()
u1.Get2() //,

u2.Get1() //
u2.Get2() //, 
.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3bf7b-2c2ee.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3bf7b-2c2ee.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?