serializer

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2020 License: GPL-3.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// Empty - defines an empty string
	Empty string = ""

	// Null - defines an null string
	Null string = "null"

	// ByteFloatFormat - defines the float format
	ByteFloatFormat byte = 'f'
)

Variables

This section is empty.

Functions

func InterfaceHasZeroValue added in v1.3.1

func InterfaceHasZeroValue(x interface{}) bool

InterfaceHasZeroValue - is a value from a interface zero? (nil)

func PanicHandler added in v1.3.2

func PanicHandler()

PanicHandler - handles an unexpected panic

Types

type Serializer

type Serializer interface {

	// SerializeGeneric - serializes with the correct cast based on the struct ArrayItem
	SerializeGeneric(item interface{}) (string, error)

	// SerializeGenericArray - serializes with the correct cast based on the struct ArrayItem
	SerializeGenericArray(item ...interface{}) (string, error)
}

Serializer - a generic way to serialize

Jump to

Keyboard shortcuts

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