Documentation ¶
Index ¶
- func CsvToSlice(file *os.File, colSep rune, model interface{}, colMap map[string]int) interface{}
- func ExcelColIdToColNo(colID string) (int, error)
- func ExcelColNoToColId(colNo int) (string, error)
- func GetDbFields(model interface{}) ([]string, error)
- func GetHeadings(file *os.File, colSep rune) ([]string, error)
- func GuessSeparator(file *os.File) (rune, error)
- func StringToType(input string, outType reflect.Type) reflect.Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CsvToSlice ¶
converts the content of a CSV file to a slice of 'models' colMap maps the feldnames of the model to the column numbers (beginning at 1) of the CSV file the result is an interface, which will need to be typecast by the caller
func ExcelColIdToColNo ¶
func ExcelColNoToColId ¶
func GetDbFields ¶
func GuessSeparator ¶
inputReader would normally be the file or stream to read
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.