MCPcopy Create free account
hub / github.com/corestoreio/pkg / NewGobEncoding

Function NewGobEncoding

util/csjwt/encodeDecode.go:77–96  ·  view source on GitHub ↗

NewGobEncoding creates a new primed gob Encoder/Decoder. Newly created Encoder/Decoder will Encode/Decode the passed sample structs without actually writing/reading from their respective Writer/Readers. This is useful for gob which encodes/decodes extra type information whenever it sees a new type.

(primeObjects ...interface{})

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 5

EncodeMethod · 0.80
DecodeMethod · 0.80
NewEncoderMethod · 0.65
NewDecoderMethod · 0.65
ResetMethod · 0.45

Tested by

no test coverage detected