readformats

package
v0.2.26 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 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 CSVRow

type CSVRow map[string]string

func LoadCSVStreamed

func LoadCSVStreamed(filePath string) ([]CSVRow, []string, error)

type Category

type Category struct {
	Name    string   `yaml:"name"`
	Filters []string `yaml:"filters"`
}

type Config

type Config struct {
	Categories []Category `yaml:"categories"`
}

type YAMLReader

type YAMLReader struct {
	Filename string
}

func NewYAMLReader

func NewYAMLReader(filename string) *YAMLReader

func (*YAMLReader) ReadFile

func (y *YAMLReader) ReadFile() (Config, error)

func (*YAMLReader) ReadLines

func (y *YAMLReader) ReadLines() ([]byte, error)

Jump to

Keyboard shortcuts

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