MCPcopy Create free account
hub / github.com/DoNewsCode/core / Marshal

Method Marshal

contract/codec.go:6–6  ·  view source on GitHub ↗
(value interface{})

Source from the content-addressed store, hash-verified

4type Codec interface {
5 Unmarshal(data []byte, value interface{}) error
6 Marshal(value interface{}) ([]byte, error)
7}

Callers 11

TestCodec_MarshalFunction · 0.65
MarshalMethod · 0.65
TestJSON_MarshalFunction · 0.65
TestJSON_UnmarshalFunction · 0.65
MarshalMethod · 0.65
MarshalMethod · 0.65
MarshalJSONMethod · 0.65
TestCodecParser_MarshalFunction · 0.65
TestDuration_MarshalJSONFunction · 0.65
writeMethod · 0.65
writeMethod · 0.65

Implementers 3

Codeccodec/yaml/yaml.go
Codeccodec/json/json.go
CodecParserconfig/codec_parser.go

Calls

no outgoing calls

Tested by 5

TestCodec_MarshalFunction · 0.52
TestJSON_MarshalFunction · 0.52
TestJSON_UnmarshalFunction · 0.52
TestCodecParser_MarshalFunction · 0.52
TestDuration_MarshalJSONFunction · 0.52