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

Method SetNillableCreatedAt

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

Callers

nothing calls this directly

Calls 1

SetCreatedAtMethod · 0.95

Tested by

no test coverage detected