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

Function JSONEncoder

base/util_ce.go:57–59  ·  view source on GitHub ↗

JSONEncoder returns a new JSON encoder implementing the JSONEncoderI interface

(w io.Writer)

Source from the content-addressed store, hash-verified

55
56// JSONEncoder returns a new JSON encoder implementing the JSONEncoderI interface
57func JSONEncoder(w io.Writer) JSONEncoderI {
58 return json.NewEncoder(w)
59}
60
61// JSONEncoderCanonical returns a new canonical JSON encoder implementing the JSONEncoderI interface
62func JSONEncoderCanonical(w io.Writer) JSONEncoderI {

Callers 2

handleFunctionMethod · 0.92
handleChangesMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected