delimited

package
v1.14.0-dev.1 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConverter

func NewConverter(delimiter string) (message.Converter, error)

Types

type Converter

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

func (*Converter) Decode

func (c *Converter) Decode(b []byte) (ma interface{}, err error)

Decode If the cols is not set, the default key name is col1, col2, col3... The return value is always a map

func (*Converter) Encode

func (c *Converter) Encode(d interface{}) (b []byte, err error)

Encode If no columns defined, the default order is sort by key

func (*Converter) SetColumns

func (c *Converter) SetColumns(cols []string)

Jump to

Keyboard shortcuts

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