codec

package
v0.42.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Default

func Default() *registry

func New

func New() *registry

func Register

func Register[T any](name string)

Types

type Registry

type Registry interface {
	ForName(name string) (Unmarshaller, bool)
}

type Unmarshaller

type Unmarshaller func(data []byte, value reflect.Value) error

func ForName

func ForName(name string) (Unmarshaller, bool)

Jump to

Keyboard shortcuts

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