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
Click to show internal directories.
Click to hide internal directories.