Documentation ¶ Index ¶ func DecodeNew(b []byte, pd *MessageDef) (e *Entity, err error) func Encode(e *Entity, pd *MessageDef) ([]byte, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func DecodeNew ¶ func DecodeNew(b []byte, pd *MessageDef) (e *Entity, err error) DecodeNew transforms the JSON representation of the message to dynamic entity against the provided message definition. func Encode ¶ func Encode(e *Entity, pd *MessageDef) ([]byte, error) Encode transforms the data from the dynamic entity to a buffer, containing the JSON. If the entity type doesn't correspond the data type of the message definition, the method will panic. Types ¶ This section is empty. Source Files ¶ View all Source files decode.goencode.golookup.go Directories ¶ Show internal Expand all Path Synopsis internal impl Click to show internal directories. Click to hide internal directories.