MCPcopy Create free account
hub / github.com/buger/jsonparser / MarshalJSONBuf

Method MarshalJSONBuf

benchmark/benchmark_ffjson.go:1765–1778  ·  view source on GitHub ↗

Benchmark harness support for STK-REQ-004.

(buf fflib.EncodingBuffer)

Source from the content-addressed store, hash-verified

1763
1764// Benchmark harness support for STK-REQ-004.
1765func (mj *DSUser) MarshalJSONBuf(buf fflib.EncodingBuffer) error {
1766 if mj == nil {
1767 buf.WriteString("null")
1768 return nil
1769 }
1770 var err error
1771 var obj []byte
1772 _ = obj
1773 _ = err
1774 buf.WriteString(`{"Username":`)
1775 fflib.WriteJsonString(buf, string(mj.Username))
1776 buf.WriteByte('}')
1777 return nil
1778}
1779
1780const (
1781 ffj_t_DSUserbase = iota

Callers 1

MarshalJSONMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected