d2txt

package
v0.0.0-...-7f92c57 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package d2txt provides a parser implementation for diablo TSV data files

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataDictionary

type DataDictionary struct {
	Err error
	// contains filtered or unexported fields
}

DataDictionary represents a data file (Excel)

func LoadDataDictionary

func LoadDataDictionary(buf []byte) *DataDictionary

LoadDataDictionary loads the contents of a spreadsheet style txt file

func (*DataDictionary) Bool

func (d *DataDictionary) Bool(field string) bool

Bool gets a bool value for the given column

func (*DataDictionary) List

func (d *DataDictionary) List(field string) []string

List splits a delimited list from the given column

func (*DataDictionary) Next

func (d *DataDictionary) Next() bool

Next reads the next row, skips Expansion lines or returns false when the end of a file is reached or an error occurred

func (*DataDictionary) Number

func (d *DataDictionary) Number(field string) int

Number gets a number for the given column

func (*DataDictionary) String

func (d *DataDictionary) String(field string) string

String gets a string from the given column

Jump to

Keyboard shortcuts

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