SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
(t *time.Time)
| 40 | |
| 41 | // SetNillableCreatedAt sets the "created_at" field if the given value is not nil. |
| 42 | func (uc *UserCreate) SetNillableCreatedAt(t *time.Time) *UserCreate { |
| 43 | if t != nil { |
| 44 | uc.SetCreatedAt(*t) |
| 45 | } |
| 46 | return uc |
| 47 | } |
| 48 | |
| 49 | // SetUpdatedAt sets the "updated_at" field. |
| 50 | func (uc *UserCreate) SetUpdatedAt(t time.Time) *UserCreate { |
nothing calls this directly
no test coverage detected