marshaling

package
v0.0.0-...-75eda33 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Marshaler

type Marshaler interface {
	Marshal(value interface{}) ([]byte, error)
}

type MarshalerFunc

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

func (MarshalerFunc) Marshal

func (m MarshalerFunc) Marshal(v interface{}) ([]byte, error)

type Marshaling

type Marshaling interface {
	Marshaler
	Unmarshaler
}

func JSON

func JSON() Marshaling

func New

type Unmarshaler

type Unmarshaler interface {
	Unmarshal(bs []byte, value interface{}) error
}

type UnmarshalerFunc

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

func (UnmarshalerFunc) Unmarshal

func (f UnmarshalerFunc) Unmarshal(bs []byte, value interface{}) error

Jump to

Keyboard shortcuts

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