String returns a version/sourceID pair in CBL string format. This does not match the format serialized on CBS, which will be in 0x0 format.
()
| 217 | |
| 218 | // String returns a version/sourceID pair in CBL string format. This does not match the format serialized on CBS, which will be in 0x0 format. |
| 219 | func (v Version) String() string { |
| 220 | if v.IsEmpty() { |
| 221 | return "" |
| 222 | } |
| 223 | return strconv.FormatUint(v.Value, 16) + "@" + v.SourceID |
| 224 | } |
| 225 | |
| 226 | func (v Version) GoString() string { |
| 227 | return fmt.Sprintf("Version{SourceID:%s, Value:%d}", v.SourceID, v.Value) |