json

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL