MCPcopy Index your code
hub / github.com/go-dev-frame/sponge / Encoding

Interface Encoding

pkg/encoding/encoding.go:66–69  ·  view source on GitHub ↗

Encoding definition of coding interfaces

Source from the content-addressed store, hash-verified

64
65// Encoding definition of coding interfaces
66type Encoding interface {
67 Marshal(v interface{}) ([]byte, error)
68 Unmarshal(data []byte, v interface{}) error
69}
70
71// Marshal encode data
72func Marshal(e Encoding, v interface{}) (data []byte, err error) {

Callers

nothing calls this directly

Implementers 9

MsgPackEncodingpkg/encoding/msgpack_encoding.go
GobEncodingpkg/encoding/gob_encoding.go
JSONEncodingpkg/encoding/json_encoding.go
JSONGzipEncodingpkg/encoding/json_encoding.go
JSONSnappyEncodingpkg/encoding/json_encoding.go
codecpkg/encoding/encoding_test.go
encoderpkg/encoding/encoding_test.go
codecpkg/encoding/proto/proto.go
codecpkg/encoding/json/json.go

Calls

no outgoing calls

Tested by

no test coverage detected