Documentation
¶
Index ¶
- func JsonEventsToEvents(eventsPoolFilepath string) ([]counters.Event, error)
- func ReadCSVCards(f io.Reader, template *counters.CardsTemplate) (*counters.CardsTemplate, error)
- func ReadCSVCounters(filepath string) (*counters.CounterTemplate, error)
- func ReadCounterTemplate(inputPath string, outputPathForTemplate ...string) (*counters.CounterTemplate, error)
- func ReadJSONCardsFile(cardsFilepath string) (*counters.CardsTemplate, error)
- func ReadQuotesFromFile(quotesFilepath string) (counters.Quotes, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JsonEventsToEvents ¶
func ReadCSVCards ¶
func ReadCSVCards(f io.Reader, template *counters.CardsTemplate) (*counters.CardsTemplate, error)
func ReadCSVCounters ¶
func ReadCSVCounters(filepath string) (*counters.CounterTemplate, error)
ReadCSVCounters follows a convention to read CSV files into counter templates: A-Q Columns in the CSV corresponds to the 0-16 possible position to write into a counter, being 0 the horizontal and vertical center Column R (17): Is the Side: red, blue, german, etc. Column S (18): Is the background color
func ReadCounterTemplate ¶
func ReadCounterTemplate(inputPath string, outputPathForTemplate ...string) (*counters.CounterTemplate, error)
ReadCounterTemplate is used to read files the defines an array of counters. `outputPathForTemplate` is only used for Cli stuff
func ReadJSONCardsFile ¶
func ReadJSONCardsFile(cardsFilepath string) (*counters.CardsTemplate, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.