MCPcopy
hub / github.com/openai/openai-go / MarshalJSON

Method MarshalJSON

packages/param/encoder_test.go:40–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38}
39
40func (r FieldStruct) MarshalJSON() (data []byte, err error) {
41 type shadow FieldStruct
42 return param.MarshalObject(r, (*shadow)(&r))
43}
44
45type StructWithAdditionalProperties struct {
46 First string `json:"first"`

Callers

nothing calls this directly

Calls 1

MarshalObjectFunction · 0.92

Tested by

no test coverage detected