joincitectdbf

package
v0.0.0-...-3ac0e20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindAndJoinDbfFiles

func FindAndJoinDbfFiles(folders []string, log *logrus.Logger, dbfFilename string) [][]string

FindAndJoinDbfFiles reads the variable.dbf files in the provided folders and returns the data as a slice of slices.

func FindMasterDBF

func FindMasterDBF(dir string, searchMasterDBF bool, log *logrus.Logger) (string, error)

FindMasterDBF searches for master.dbf in the provided directory or subdirectories.

func GetFolders

func GetFolders(dir string, fromCurrent bool) ([]string, error)

GetFolders returns a slice of folder paths in the provided directory.

func GetMasterDBFTableFoldersAsSlice

func GetMasterDBFTableFoldersAsSlice(masterDbfPath string, log *logrus.Logger) ([]string, error)

GetMasterDBFTableFoldersAsSlice reads the master.dbf file and returns a slice of folder paths.

func WriteToCSV

func WriteToCSV(data [][]string, outputFile string, log *logrus.Logger)

WriteToCSV writes the data to a CSV file

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL