package
2.1.0+incompatible
Repository: https://github.com/jexia/semaphore.git
Documentation: pkg.go.dev
# Functions
AddType encodes the given value into the given encoder.
AddTypeKey encodes the given value into the given encoder.
BoolEmpty returns the given value as a bool or a empty bool if the value is nil.
BytesBase64Empty returns the given bytes buffer as a base64 string or a empty string if the value is nil.
DecodeType decodes the given property from the given decoder.
Float32Empty returns the given value as a float32 or a empty float32 if the value is nil.
Float64Empty returns the given value as a float64 or a empty float64 if the value is nil.
Int32Empty returns the given value as a int32 or a empty int32 if the value is nil.
Int64Empty returns the given value as a int64 or a empty int64 if the value is nil.
NewArray creates a new array to be JSON encoded/decoded.
NewConstructor constructs a new JSON constructor.
NewObject constructs a new object encoder/decoder for the given specs.
StringEmpty returns the given value as a string or a empty string if the value is nil.
Uint32Empty returns the given value as a uint32 or a empty uint32 if the value is nil.
Uint64Empty returns the given value as a uint64 or a empty uint64 if the value is nil.
# Variables
ErrUnknownType is thrown when the given type is unknown.
# Structs
Array represents a JSON array.
Constructor is capable of constructing new codec managers for the given resource and specs.
ErrUndefinedSpecs occurs when spacs are nil.
Manager manages a specs object and allows to encode/decode messages.
Object represents a JSON object.