String returns a string representation of the position.
()
| 24 | |
| 25 | // String returns a string representation of the position. |
| 26 | func (p PosV3) String() string { |
| 27 | if p.IsZero() { |
| 28 | return "" |
| 29 | } |
| 30 | return fmt.Sprintf("%s/%08x:%016x", p.Generation, p.Index, p.Offset) |
| 31 | } |
| 32 | |
| 33 | // SnapshotInfoV3 contains metadata about a v0.3.x snapshot. |
| 34 | type SnapshotInfoV3 struct { |