Documentation ¶
Overview ¶
Package d2txt provides a parser implementation for diablo TSV data files
Index ¶
- type DataDictionary
- func (d *DataDictionary) Bool(field string) bool
- func (d *DataDictionary) Encode() ([]byte, error)
- func (d *DataDictionary) List(field string) []string
- func (d *DataDictionary) Next() (isntLast bool)
- func (d *DataDictionary) Number(field string) int
- func (d *DataDictionary) Reset()
- func (d *DataDictionary) String(field string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataDictionary ¶
type DataDictionary struct { Records [][]string // contains filtered or unexported fields }
DataDictionary represents a data file (Excel)
func Load ¶
func Load(buf []byte) (*DataDictionary, error)
Load 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) Encode ¶
func (d *DataDictionary) Encode() ([]byte, error)
Encode encodes data dictionary into a byte slice
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() (isntLast 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.