encode

package
v0.0.0-...-0cc473b Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const JSON = "json"
View Source
const TEXT = "plain_text"

Variables

This section is empty.

Functions

func GetGlobalRegistry

func GetGlobalRegistry() *encodingRegistry

func NewEncodingRegistry

func NewEncodingRegistry() *encodingRegistry

Types

type Encoding

type Encoding interface {
	String() string
	Extension() string
	Marshal(interface{}) ([]byte, error)
	Unmarshal([]byte, interface{}) error
}

type EncodingRegistry

type EncodingRegistry interface {
	AddNew(Encoding)
	Get(string) (Encoding, bool)
}

Jump to

Keyboard shortcuts

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