exporter

package
v0.0.0-...-bf9dc68 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2019 License: MIT Imports: 6 Imported by: 0

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) Close

func (e *CSVExporter) Close()

Close closes CSV file.

func (*CSVExporter) ExportGame

func (e *CSVExporter) ExportGame(g model.Game, countryName string) error

ExportGame writes game to CSV file.

func (*CSVExporter) Open

func (e *CSVExporter) Open() error

Open opens exporter's writer.

Jump to

Keyboard shortcuts

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