MCPcopy
hub / github.com/gin-gonic/gin / Marshal

Method Marshal

codec/json/api.go:14–14  ·  codec/json/api.go::Core.Marshal
(v any)

Source from the content-addressed store, hash-verified

12// Core the api for json codec.
13type Core interface {
14 Marshal(v any) ([]byte, error)
15 Unmarshal(data []byte, v any) error
16 MarshalIndent(v any, prefix, indent string) ([]byte, error)
17 NewEncoder(writer io.Writer) Encoder

Callers 15

TestErrorFunction · 0.65
TestErrorSliceFunction · 0.65
MarshalJSONMethod · 0.65
MarshalJSONMethod · 0.65
TestRenderProtoBufFunction · 0.65
TestRenderBSONFunction · 0.65
RenderMethod · 0.65
RenderMethod · 0.65

Implementers 5

gojsonApicodec/json/go_json.go
jsoniterApicodec/json/jsoniter.go
sonicApicodec/json/sonic.go
jsonApicodec/json/json.go
customJsonApibinding/json_test.go

Calls

no outgoing calls

Tested by 12

TestErrorFunction · 0.52
TestErrorSliceFunction · 0.52
TestRenderProtoBufFunction · 0.52
TestRenderBSONFunction · 0.52
TestBindingProtoBufFunction · 0.52
TestBindingProtoBufFailFunction · 0.52
TestBindingBSONFunction · 0.52
MarshalMethod · 0.52