extractor

package
v0.0.0-...-4652a81 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadCsvFile

func DownloadCsvFile(url string, filePath string, timeoutSeconds int) ([][]string, error)

DownloadCsvFile download csv file from URL and save to filePath

func DownloadLink(URL string) ([][]string, error)

DownloadLink Downloads the given URL and saves the contents to a temporary file

func GetDataHeadersFromUrl

func GetDataHeadersFromUrl(url string) (rowHeaders, colHeaders []string)

GetDataHeadersFromUrl downloads the url and gets data headers

Types

type TableData

type TableData struct {
	RowHeaders []string
	ColHeaders []string
	Data       [][]string
}

TableData table of data extracted from resource

func ExtractTableFromFile

func ExtractTableFromFile(fileName string) (TableData, error)

ExtractTableFromFile extract local file contents as TableData

func ExtractTableFromUrl

func ExtractTableFromUrl(url string) (TableData, error)

ExtractTableFromUrl downloads the url and extracts data and headers

Jump to

Keyboard shortcuts

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