file

package
v0.0.0-...-ec80198 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileConnx

type FileConnx struct {
	// contains filtered or unexported fields
}

func CreateNewFileConnection

func CreateNewFileConnection(filePath string) FileConnx

func (*FileConnx) GetMostRecentEpisodeNumberFromCsv

func (f *FileConnx) GetMostRecentEpisodeNumberFromCsv() (string, error)

func (*FileConnx) GetMostRecentEpisodeNumberFromExcel

func (f *FileConnx) GetMostRecentEpisodeNumberFromExcel(sheetName string) (string, error)

func (*FileConnx) SaveJeopardyGameBoxScoresToCsv

func (f *FileConnx) SaveJeopardyGameBoxScoresToCsv(mode string, scores []model.JeopardyGameBoxScore) error

func (*FileConnx) SaveJeopardyGameBoxScoresToExcel

func (f *FileConnx) SaveJeopardyGameBoxScoresToExcel(mode string, scores []model.JeopardyGameBoxScore, sheetName string) error

type FileStorage

type FileStorage interface {
	GetMostRecentEpisodeNumberFromCsv() (string, error)
	GetMostRecentEpisodeNumberFromExcel(mode string, sheetName string) (string, error)
	SaveJeopardyGameBoxScoresToCsv(scores []model.JeopardyGameBoxScore) error
	SaveJeopardyGameBoxScoresToExcel(mode string, sheetName string, scores []model.JeopardyGameBoxScore) error
}

Jump to

Keyboard shortcuts

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