Documentation ¶
Overview ¶
Some additional utilities that are useful when processing CSV headers and data.
Index ¶
- func CToGoString(c []byte) string
- func ColumnReorder(filePath string, columns []int, delimiter string)
- func DetectCsvDelimiter(filePath string) string
- func Equal(a, b []string) bool
- func Find(a []string, x string) int
- func GetColumnCount(filePath string) int
- func GetHeader(filePath string) []string
- func HeaderPositionEqual(a, b []int) bool
- func IsSpace(b byte) bool
- func MaxInt(a, b int) int
- func MinInt(a, b int) int
- func RandShuffle(input []int)
- func TimeTrack(start time.Time, name string)
- func ToLowerByte(b byte) byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CToGoString ¶
func ColumnReorder ¶
ColumnReorder is to reorder the CSV columns
func DetectCsvDelimiter ¶
DetectCsvDelimiter - detect and get csv delimiter
func GetColumnCount ¶
GetColumnCount : return the CSV column count
func HeaderPositionEqual ¶
HeaderPositionEqual :test whether the given two string slices are equal
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.