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: 3 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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