Next returns the next valid XID at the same time – it simply returns a new XID with the next sequence number.
()
| 79 | |
| 80 | // Next returns the next valid XID at the same time – it simply returns a new XID with the next sequence number. |
| 81 | func (xid XID) Next() XID { |
| 82 | return NewXID(xid.Time(), xid.Seq()+1) |
| 83 | } |
| 84 | |
| 85 | // Prev returns the previous valid XID at the same time – it simply returns a new XID with the previous sequence number. |
| 86 | func (xid XID) Prev() XID { |