You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Use generic optional type instead of pointers for changeset #3
Idea: generate chainable API (e.g. WithID(id uuid.UUID)) that takes care of taking the pointer.
If a field is a pointer value (e.g. *time.Time), we could generate a WithMyFieldValue(value time.Time) method that sets the pointer to a pointer to a time.Time in the changeset.
Activity
hlubek commentedon Apr 12, 2023
Idea: generate chainable API (e.g.
WithID(id uuid.UUID)) that takes care of taking the pointer.If a field is a pointer value (e.g.
*time.Time), we could generate aWithMyFieldValue(value time.Time)method that sets the pointer to a pointer to atime.Timein the changeset.