Documentation
¶
Index ¶
- type CsvParser
- type DotenvParser
- type Func
- type Parser
- type SepParser
- type TableHeader
- type TableParser
- func (p *TableParser) Unmarshal(b []byte, obj any) error
- func (p *TableParser) WithCallback(f func(k, v string) (string, string)) *TableParser
- func (p *TableParser) WithDecoderConfig(conf *mapstructure.DecoderConfig) *TableParser
- func (p *TableParser) WithFilter(f func(i int, line string) bool) *TableParser
- func (p *TableParser) WithHeader(header string) *TableParser
- func (p *TableParser) WithSepFunc(f func(rune) bool) *TableParser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CsvParser ¶ added in v0.1.7
type CsvParser struct {
// contains filtered or unexported fields
}
func (*CsvParser) WithDecoderConfig ¶ added in v0.1.7
func (*CsvParser) WithHeaders ¶ added in v0.1.7
type DotenvParser ¶
type DotenvParser struct {
// contains filtered or unexported fields
}
func (*DotenvParser) Unmarshal ¶ added in v0.1.2
func (p *DotenvParser) Unmarshal(b []byte, v any) error
func (*DotenvParser) WithDecoderConfig ¶ added in v0.1.2
func (p *DotenvParser) WithDecoderConfig(conf *mapstructure.DecoderConfig) *DotenvParser
type SepParser ¶
type SepParser struct {
// contains filtered or unexported fields
}
func (*SepParser) WithDecoderConfig ¶ added in v0.1.2
type TableHeader ¶
type TableHeader string
type TableParser ¶
type TableParser struct {
// contains filtered or unexported fields
}
TableParser is a builder for the TableParser
func Table ¶
func Table() *TableParser
Table returns a new TableParser to parse a table It parses a table from an io.Reader
func (*TableParser) Unmarshal ¶ added in v0.1.2
func (p *TableParser) Unmarshal(b []byte, obj any) error
func (*TableParser) WithCallback ¶ added in v0.1.2
func (p *TableParser) WithCallback(f func(k, v string) (string, string)) *TableParser
func (*TableParser) WithDecoderConfig ¶ added in v0.1.2
func (p *TableParser) WithDecoderConfig(conf *mapstructure.DecoderConfig) *TableParser
func (*TableParser) WithFilter ¶
func (p *TableParser) WithFilter(f func(i int, line string) bool) *TableParser
func (*TableParser) WithHeader ¶
func (p *TableParser) WithHeader(header string) *TableParser
func (*TableParser) WithSepFunc ¶ added in v0.1.2
func (p *TableParser) WithSepFunc(f func(rune) bool) *TableParser
Click to show internal directories.
Click to hide internal directories.