SetNillableDownloads sets the "downloads" field if the given value is not nil.
(i *int)
| 103 | |
| 104 | // SetNillableDownloads sets the "downloads" field if the given value is not nil. |
| 105 | func (sc *ShareCreate) SetNillableDownloads(i *int) *ShareCreate { |
| 106 | if i != nil { |
| 107 | sc.SetDownloads(*i) |
| 108 | } |
| 109 | return sc |
| 110 | } |
| 111 | |
| 112 | // SetExpires sets the "expires" field. |
| 113 | func (sc *ShareCreate) SetExpires(t time.Time) *ShareCreate { |
nothing calls this directly
no test coverage detected