input

package
v0.0.0-...-6433895 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2025 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JsonEventsToEvents

func JsonEventsToEvents(eventsPoolFilepath string) ([]counters.Event, error)

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)

func ReadQuotesFromFile

func ReadQuotesFromFile(quotesFilepath string) (counters.Quotes, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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