io

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2019 License: MIT Imports: 3 Imported by: 1

README

io

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MarshalStrategy

type MarshalStrategy func(interface{}) ([]byte, error)

type TypeRegistry

type TypeRegistry struct {
	// contains filtered or unexported fields
}

func NewTypeRegistry

func NewTypeRegistry() *TypeRegistry

func (*TypeRegistry) Marshal

func (r *TypeRegistry) Marshal(marshal MarshalStrategy, value interface{}) (string, []byte, error)

func (*TypeRegistry) Name

func (r *TypeRegistry) Name(value interface{}) (string, error)

func (*TypeRegistry) Register

func (r *TypeRegistry) Register(name string, value interface{}) error

func (*TypeRegistry) Type

func (r *TypeRegistry) Type(name string) (reflect.Type, error)

func (*TypeRegistry) Unmarshal

func (r *TypeRegistry) Unmarshal(unmarshal UnmarshalStrategy, name string, data []byte) (interface{}, error)

type UnmarshalStrategy

type UnmarshalStrategy func([]byte, interface{}) error

Jump to

Keyboard shortcuts

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