text

package
v0.0.0-...-382259f Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2021 License: GPL-3.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

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

func Unmarshal

func Unmarshal(b []byte, v interface{}) error

Types

type Decoder

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

func NewDecoder

func NewDecoder(in io.Reader) *Decoder

func (*Decoder) Decode

func (decoder *Decoder) Decode(i interface{}) error

type Dict

type Dict map[string]string

type Encoder

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

func NewEncoder

func NewEncoder(out io.Writer) *Encoder

func (*Encoder) Encode

func (encoder *Encoder) Encode(i interface{}) error

type Word

type Word interface {
	EncodeWord() (string, error)
	DecodeWord(out reflect.Value, data string) error
}

Jump to

Keyboard shortcuts

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