What would be the benefit of using a struct like below with pointers instead of a struct without pointers when scanning from database?
type User struct {
ID *UserID `json:"id,omitempty"`
Email *string `json:"email"`
Username *string `json:"username"`
PasswordHash *[]byte `json:"password_hash"`
CreatedAt *time.Time `json:"created_at"`
}
stringtype?sql.NullStringin Go or withCOALESCEin SQL.