UTILITY FUNCTIONS: oldRevisionKey returns the key for the document that stores a copy of the document's body for a given old revision.
(docid string, rev string)
| 382 | |
| 383 | // oldRevisionKey returns the key for the document that stores a copy of the document's body for a given old revision. |
| 384 | func oldRevisionKey(docid string, rev string) string { |
| 385 | return fmt.Sprintf("%s%s:%d:%s", base.RevPrefix, docid, len(rev), rev) |
| 386 | } |
| 387 | |
| 388 | // Version of FixJSONNumbers (see base/util.go) that operates on a Body |
| 389 | func (body Body) FixJSONNumbers() { |
no outgoing calls