MCPcopy Index your code
hub / github.com/cloudreve/cloudreve / SetNillableCreatedAt

Method SetNillableCreatedAt

ent/task_create.go:35–40  ·  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

33
34// SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
35func (tc *TaskCreate) SetNillableCreatedAt(t *time.Time) *TaskCreate {
36 if t != nil {
37 tc.SetCreatedAt(*t)
38 }
39 return tc
40}
41
42// SetUpdatedAt sets the "updated_at" field.
43func (tc *TaskCreate) SetUpdatedAt(t time.Time) *TaskCreate {

Callers

nothing calls this directly

Calls 1

SetCreatedAtMethod · 0.95

Tested by

no test coverage detected