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

Function StripInternalProperties

db/revision.go:482–484  ·  view source on GitHub ↗

StripInternalProperties returns a copy of the given body with all internal underscore-prefixed keys removed, except _attachments and _deleted.

(b Body)

Source from the content-addressed store, hash-verified

480
481// StripInternalProperties returns a copy of the given body with all internal underscore-prefixed keys removed, except _attachments and _deleted.
482func StripInternalProperties(b Body) (Body, bool) {
483 return stripSpecialProperties(b, true)
484}
485
486// stripAllInternalProperties returns a copy of the given body with all underscore-prefixed keys removed.
487func stripAllSpecialProperties(b Body) (Body, bool) {

Calls 1

stripSpecialPropertiesFunction · 0.85