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

Method SetNillableCreatedAt

ent/node_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 (nc *NodeCreate) SetNillableCreatedAt(t *time.Time) *NodeCreate {
36 if t != nil {
37 nc.SetCreatedAt(*t)
38 }
39 return nc
40}
41
42// SetUpdatedAt sets the "updated_at" field.
43func (nc *NodeCreate) SetUpdatedAt(t time.Time) *NodeCreate {

Callers

nothing calls this directly

Calls 1

SetCreatedAtMethod · 0.95

Tested by

no test coverage detected