package
2.8.0
Repository: https://github.com/davron112/lura.git
Documentation: pkg.go.dev

# Functions

GetRegister returns the package register.
JSONCollectionDecoder decodes a json collection and returns a map with the array at the 'collection' key.
JSONDecoder decodes a json message into a map.
NewJSONDecoder returns the right JSON decoder.
NewSafeJSONDecoder returns the universal json decoder.
NewStringDecoder returns a String decoder.
NoOpDecoder is a decoder that does nothing.
SafeJSONDecoder decodes both json objects and collections.
StringDecoder returns a map with the content of the reader under the key 'content'.

# Constants

JSON is the key for the json encoding.
NOOP is the key for the NoOp encoding.
SAFE_JSON is the key for the json encoding.
STRING is the key for the string encoding.

# Structs

DecoderRegister is the struct responsible of registering the decoder factories.

# Type aliases

Decoder is a function that reads from the reader and decodes it into an map of interfaces.
DecoderFactory is a function that returns CollectionDecoder or an EntityDecoder.