Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
Decoder parse csv lines into key value pairs
func NewDecoder ¶
func NewDecoder(opts DecoderOptions) *Decoder
type DecoderOptions ¶
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
Encoder transform messages into csv text
func NewEncoder ¶
func NewEncoder(opts EncoderOptions) *Encoder
type EncoderOptions ¶
type EncoderOptions struct {
//Header acts as a filter, if a field is not in header is skipped
Header []string
//Comma default ,
Comma rune
//UseCRLF use \r\n instead of \n
UseCRLF bool
Handler selina.ErrorHandler
ReadFormat selina.Unmarshaler
}
Click to show internal directories.
Click to hide internal directories.