MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / String

Method String

db/hybrid_logical_vector.go:219–224  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

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.
219func (v Version) String() string {
220 if v.IsEmpty() {
221 return ""
222 }
223 return strconv.FormatUint(v.Value, 16) + "@" + v.SourceID
224}
225
226func (v Version) GoString() string {
227 return fmt.Sprintf("Version{SourceID:%s, Value:%d}", v.SourceID, v.Value)

Calls 1

IsEmptyMethod · 0.95