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

Interface Core

codec/json/api.go:13–19  ·  codec/json/api.go::Core

Core the api for json codec.

Source from the content-addressed store, hash-verified

11
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
18 NewDecoder(reader io.Reader) Decoder
19}
20
21// Encoder an interface writes JSON values to an output stream.
22type Encoder interface {

Callers 38

TestErrorFunction · 0.65
TestErrorSliceFunction · 0.65
MarshalJSONMethod · 0.65
MarshalJSONMethod · 0.65
UnmarshalMethod · 0.65
UnmarshalMethod · 0.65
UnmarshalMethod · 0.65
UnmarshalMethod · 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

no test coverage detected