SetNillableWeight sets the "weight" field if the given value is not nil.
(i *int)
| 166 | |
| 167 | // SetNillableWeight sets the "weight" field if the given value is not nil. |
| 168 | func (nu *NodeUpdate) SetNillableWeight(i *int) *NodeUpdate { |
| 169 | if i != nil { |
| 170 | nu.SetWeight(*i) |
| 171 | } |
| 172 | return nu |
| 173 | } |
| 174 | |
| 175 | // AddWeight adds i to the "weight" field. |
| 176 | func (nu *NodeUpdate) AddWeight(i int) *NodeUpdate { |