Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CSVExporter ¶
type CSVExporter struct {
// contains filtered or unexported fields
}
CSVExporter exports chess stats to CSV file.
func NewExporter ¶
func NewExporter(filename, username string) (*CSVExporter, error)
NewExporter creates new CSV exporter. Filename is a name of CSV sheet. If extention is not provided, it will be added automatically.
func (*CSVExporter) ExportGame ¶
func (e *CSVExporter) ExportGame(g model.Game, countryName string) error
ExportGame writes game to CSV file.
Click to show internal directories.
Click to hide internal directories.