datafiles

package
v0.0.0-...-d946a20 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataFile

type DataFile struct {
	Header HeaderData
	Body   string
}

func NewDataFileFromFileContent

func NewDataFileFromFileContent(fileContent []byte) (*DataFile, error)

func (*DataFile) Generate

func (t *DataFile) Generate() ([]byte, error)

type DataFileLocation

type DataFileLocation struct {
	Name string
	Path string
}

DataFileLocation represents a file on disk that contains a data file

func ListDataFilesInDir

func ListDataFilesInDir(dir string) ([]*DataFileLocation, error)

func (*DataFileLocation) GetDataFile

func (t *DataFileLocation) GetDataFile() (*DataFile, error)

func (*DataFileLocation) String

func (t *DataFileLocation) String() string

type HeaderData

type HeaderData map[interface{}]interface{}

func (HeaderData) GetString

func (h HeaderData) GetString(key interface{}) (string, bool)

func (HeaderData) GetStringSlice

func (h HeaderData) GetStringSlice(key interface{}) ([]string, bool)

Jump to

Keyboard shortcuts

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