Documentation ¶
Index ¶
- func CSVFiles(directory string, disclude []string) []string
- func CSVFilesFromEmbededFS(embededFS embed.FS, directory string) []string
- func CSVOutputFileName(directory, inputFile string) string
- func CreateFile(file string) (*os.File, error)
- func KeepColumns(inputFile, outputFile string, cols []int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CSVFiles ¶
CSVFiles returns all csv files in a directory (and doesn't include csv files with strings in `disclude` in its name)
func CSVFilesFromEmbededFS ¶
CSVFilesFromEmbededFS returns all csv files in a directory from an embeded FS
func CSVOutputFileName ¶
CSVOutputFileName returns name of csv file suffixed with the current unix timestamp and with the directory `directory` prefixed to its path Example: inputFile: "./data/something.csv" output: "./data/`directory`/something_`current unix timestamp`.csv"
func CreateFile ¶
CreateFile creates the file `file` and all the directories sepcified in `file`'s path if they don't exist
func KeepColumns ¶
keepColumns saves the csv file `inputFile` as `outputFile` with only the specified columns
Types ¶
This section is empty.