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

Struct CodecParser

config/codec_parser.go:9–11  ·  view source on GitHub ↗

CodecParser implements the Parser interface. It converts any contract.Codec to a valid config parser.

Source from the content-addressed store, hash-verified

7// CodecParser implements the Parser interface. It converts any contract.Codec to
8// a valid config parser.
9type CodecParser struct {
10 Codec contract.Codec
11}
12
13// Unmarshal converts the bytes to map
14func (c CodecParser) Unmarshal(bytes []byte) (map[string]interface{}, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected