serializer

package
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnserializableData = errors.New("unserializable data")

Functions

This section is empty.

Types

type Serializer

type Serializer interface {
	Serialize(data interface{}, format string) ([]byte, error)
}

func New

func New() Serializer

type UnsupportedFormatError

type UnsupportedFormatError struct {
	Format string
}

func (*UnsupportedFormatError) Error

func (err *UnsupportedFormatError) Error() string

Jump to

Keyboard shortcuts

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