Version of FixJSONNumbers (see base/util.go) that operates on a Body
()
| 387 | |
| 388 | // Version of FixJSONNumbers (see base/util.go) that operates on a Body |
| 389 | func (body Body) FixJSONNumbers() { |
| 390 | for k, v := range body { |
| 391 | body[k] = base.FixJSONNumbers(v) |
| 392 | } |
| 393 | } |
| 394 | |
| 395 | func CreateRevID(generation int, parentRevID string, body Body) (string, error) { |
| 396 | // This should produce the same results as TouchDB. |