(flag uint8, state bool)
| 759 | } |
| 760 | |
| 761 | func (doc *Document) setFlag(flag uint8, state bool) { |
| 762 | if state { |
| 763 | doc.Flags |= flag |
| 764 | } else { |
| 765 | doc.Flags &^= flag |
| 766 | } |
| 767 | } |
| 768 | |
| 769 | // RevLoaderFunc and RevWriterFunc manage persistence of non-winning revision bodies that are stored outside the document. |
| 770 | type RevLoaderFunc func(key string) ([]byte, error) |
no outgoing calls