I noticed an error in the code example under the "Upsert / On Conflict" section of the documentation.
The line of code ”err := query.User.WithContext(ctx).Clauses(clause.OnConflict{DoUpdates: clause.AssignmentColumns([]string{"name", "age"}),}).Create(&user).Error“ is incorrect; the Error() method should not be called here because Create already returns an error pointer.