SetNillableViews sets the "views" field if the given value is not nil.
(i *int)
| 89 | |
| 90 | // SetNillableViews sets the "views" field if the given value is not nil. |
| 91 | func (sc *ShareCreate) SetNillableViews(i *int) *ShareCreate { |
| 92 | if i != nil { |
| 93 | sc.SetViews(*i) |
| 94 | } |
| 95 | return sc |
| 96 | } |
| 97 | |
| 98 | // SetDownloads sets the "downloads" field. |
| 99 | func (sc *ShareCreate) SetDownloads(i int) *ShareCreate { |