csvget

package
v0.0.0-...-4f6bf25 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Row

type Row struct {
	Values []string
}

Row is a data structure to store Rows, mostly for my sanity

type Table

type Table struct {
	Data []Row
}

Table is the base operational data type in this package

func ReadCSV

func ReadCSV(filename string) Table

ReadCSV reads a local csv file and returns a Table

func ReadCSVFromURL

func ReadCSVFromURL(resURL string) Table

ReadCSVFromURL reads a CSV file from a remote URL

func (Table) GetCurrentFromUID

func (t Table) GetCurrentFromUID(uid string) Row

GetCurrentFromUID gets the latest situational data from a CSV file(specific to my usecase)

Jump to

Keyboard shortcuts

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