io

package
v0.0.0-...-a5808c9 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeGobValue

func DecodeGobValue(in []byte, out interface{}) error

func DecodeValue

func DecodeValue(out interface{}, in []byte, enc Encoding) error

func EncodeGobValue

func EncodeGobValue(in interface{}) ([]byte, error)

func EncodeTextFormatSummary

func EncodeTextFormatSummary(in interface{}) ([]byte, error)

func EncodeValue

func EncodeValue(in interface{}, enc Encoding) ([]byte, error)

Types

type Encoding

type Encoding string
const (
	EncodingJson    Encoding = Encoding("json")
	EncodingXml     Encoding = Encoding("xml")
	EncodingYaml    Encoding = Encoding("yaml")
	EncodingGob     Encoding = Encoding("gob")
	EncodingText    Encoding = Encoding("text")
	EncodingUnknown Encoding = Encoding("")
)

func ParseEncoding

func ParseEncoding(e string) Encoding

type HeaderElem

type HeaderElem struct {
	Name    string
	Value   string
	Size    int
	Columns []*HeaderElem
}

type HeaderSet

type HeaderSet struct {
	Columns []*HeaderElem
}

type ValueItem

type ValueItem struct {
	Value     string
	SubValues []*ValueItem
}

type ValuesSet

type ValuesSet struct {
	Values []*ValueItem
}

Jump to

Keyboard shortcuts

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