disorder

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

README

disorder

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

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

func Unmarshal

func Unmarshal(data []byte, value interface{}) error

Types

type Decoder

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

func NewDecoder

func NewDecoder(r io.Reader) *Decoder

func (*Decoder) Decode

func (d *Decoder) Decode(value interface{}) (err error)

func (*Decoder) Warnings

func (d *Decoder) Warnings() []error

type Encoder

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

func NewEncoder

func NewEncoder(w io.Writer) *Encoder

func (*Encoder) Encode

func (e *Encoder) Encode(value interface{}) error

type Enum

type Enum interface {
	Enum()
	FromString(enum string) error
	ToString() (string, error)
}

type IsZeroer

type IsZeroer interface {
	IsZero() bool
}

type Marshaler

type Marshaler interface {
	MarshalDO(w io.Writer) error
}

type Unmarshaler

type Unmarshaler interface {
	UnmarshalDO(r io.Reader) error
}

Directories

Path Synopsis
internal
test_data/test
Code generated by https://github.com/meerkat-lib/disorder; DO NOT EDIT.
Code generated by https://github.com/meerkat-lib/disorder; DO NOT EDIT.
test_data/test/sub
Code generated by https://github.com/meerkat-lib/disorder; DO NOT EDIT.
Code generated by https://github.com/meerkat-lib/disorder; DO NOT EDIT.
rpc

Jump to

Keyboard shortcuts

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