data

package
v0.0.0-...-539d71c Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CSVToItemData

func CSVToItemData(f io.Reader, hasHeader bool) ([]datastore.ItemData, error)

Types

type CSVItemsLoader

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

func NewCSVItemsLoader

func NewCSVItemsLoader(filesystem afero.Fs, itemsDatPath string, hasHeader bool) *CSVItemsLoader

func (*CSVItemsLoader) Load

func (l *CSVItemsLoader) Load() ([]datastore.ItemData, error)

type RawMapLoader

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

func NewRawMapLoader

func NewRawMapLoader(filesystem afero.Fs, mapsDirectory string) *RawMapLoader

func (RawMapLoader) Load

func (l RawMapLoader) Load(mapID int) (datastore.MapData, error)

Jump to

Keyboard shortcuts

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