Has returns true if the record exists.
()
| 71 | |
| 72 | // Has returns true if the record exists. |
| 73 | func (r *Fence) Has() (bool, error) { |
| 74 | return r.rec.Exists() |
| 75 | } |
| 76 | |
| 77 | // Load populates the struct with data from storage. |
| 78 | // It presumes that the id field is set. |