MCPcopy
hub / github.com/kopia/kopia / beforeField

Method beforeField

internal/contentlog/contentlog_json_writer.go:34–40  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

32}
33
34func (jw *JSONWriter) beforeField(key string) {
35 jw.buf = append(jw.buf, jw.separator...)
36 jw.buf = append(jw.buf, '"')
37 jw.buf = append(jw.buf, key...)
38 jw.buf = append(jw.buf, '"', ':')
39 jw.separator = commaSeparator
40}
41
42// RawJSONField writes a raw JSON field where the value is already in JSON format.
43func (jw *JSONWriter) RawJSONField(key string, value []byte) {

Callers 9

RawJSONFieldMethod · 0.95
BeginObjectFieldMethod · 0.95
BeginListFieldMethod · 0.95
StringFieldMethod · 0.95
NullFieldMethod · 0.95
BoolFieldMethod · 0.95
Int64FieldMethod · 0.95
UInt64FieldMethod · 0.95
TimeFieldMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected