loader

package
v0.0.0-...-35a2fce Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSVLoader

type CSVLoader struct{}

func (*CSVLoader) Load

func (loader *CSVLoader) Load(val string) (map[string]any, error)

func (*CSVLoader) Simple

func (loader *CSVLoader) Simple() bool

type DirectoryLoader

type DirectoryLoader struct {
	SubLoaders []SubLoaderDesc
}

func (*DirectoryLoader) Load

func (loader *DirectoryLoader) Load(val string) (map[string]any, error)

func (*DirectoryLoader) Simple

func (loader *DirectoryLoader) Simple() bool

type Loader

type Loader interface {
	Simple() bool
	Load(val string) (map[string]any, error)
}

type LoaderTypeTest

type LoaderTypeTest func(val string) bool

type SqliteLoader

type SqliteLoader struct{}

func (*SqliteLoader) Load

func (loader *SqliteLoader) Load(val string) (map[string]any, error)

func (*SqliteLoader) Simple

func (loader *SqliteLoader) Simple() bool

type SubLoaderDesc

type SubLoaderDesc struct {
	Loader Loader
	Tester LoaderTypeTest
}

type XlSXLoader

type XlSXLoader struct{}

func (*XlSXLoader) Load

func (loader *XlSXLoader) Load(val string) (map[string]any, error)

func (*XlSXLoader) Simple

func (loader *XlSXLoader) Simple() bool

Jump to

Keyboard shortcuts

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