MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / SetNillableCreatedAt

Method SetNillableCreatedAt

ent/user_create.go:42–47  ·  view source on GitHub ↗

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

(t *time.Time)

Source from the content-addressed store, hash-verified

40
41// SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
42func (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.
50func (uc *UserCreate) SetUpdatedAt(t time.Time) *UserCreate {

Callers

nothing calls this directly

Calls 1

SetCreatedAtMethod · 0.95

Tested by

no test coverage detected