Documentation
¶
Index ¶
- func SliceToSliceInterface[T any](value []T) []interface{}
- type FileOptions
- type FileParser
- type Mapper
- func (m *Mapper) GetValue(key string) (string, error)
- func (m *Mapper) ReturnDate(value interface{}, field string, dateFormat string) (time.Time, error)
- func (m *Mapper) ReturnFloat(value interface{}, field string) (float64, error)
- func (m *Mapper) ReturnInteger(value interface{}, field string) (int, error)
- func (m *Mapper) SetColumns(values []string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SliceToSliceInterface ¶
func SliceToSliceInterface[T any](value []T) []interface{}
Types ¶
type FileOptions ¶
type FileParser ¶
type FileParser interface {
Read() (<-chan []string, <-chan error)
Init(options FileOptions) error
}
type Mapper ¶
type Mapper struct {
Fields map[string]interface{}
MappedFields map[string]int
SpecialFields map[string]string
Values []interface{}
DynamicValues map[int]string
DynamicFields []string
}
func (*Mapper) ReturnDate ¶
func (*Mapper) ReturnFloat ¶
func (*Mapper) ReturnInteger ¶
func (*Mapper) SetColumns ¶
Click to show internal directories.
Click to hide internal directories.