Discover Packages
github.com/kucjac/cleango
codec
package
Version:
v0.0.28
Opens a new window with list of versions in this module.
Published: Nov 3, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 1 module, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
EncodingGOB returns json encoding.
EncodingJSON returns json encoding.
EncodingProto returns json encoding.
Register registers the codec in the mapping.
func TestMessagesEncoding(t *testing .T , codecs []Codec , messages ...interface{})
TestMessagesEncoding tests the input messages if the values encoding persists the same.
Codec is an interface for all codecs to implement the
Get returns a codec for provided encoding name.
JSON gets std json codec implementation.
Proto gets std protobuf codec.
type ProtoMarshaler interface {
MarshalProto() ([]byte , error )
}
ProtoMarshaler is an interface used by the protobuf codec used to custom marshal proto message.
type ProtoUnmarshaler interface {
UnmarshalProto([]byte ) error
}
ProtoUnmarshaler is an interface used for custom unmarshalling proto message.
Source Files
¶
Directories
¶
internal
Click to show internal directories.
Click to hide internal directories.