Help us shape the future of Go! Take the 2026 Go Developer Survey

loaders

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JsonLoader

type JsonLoader struct{}

func NewJsonLoader

func NewJsonLoader() *JsonLoader

func (*JsonLoader) Load

func (loader *JsonLoader) Load(filename string) (string, error)

type LoadContent

type LoadContent struct {
	Version string                   `yaml:"version" json:"version"`
	Table   string                   `yaml:"table" json:"table"`
	Rows    []map[string]interface{} `yaml:"rows" json:"rows"`
}

type SQLLoader

type SQLLoader struct{}

func NewSQLLoader

func NewSQLLoader() *SQLLoader

func (*SQLLoader) Load

func (loader *SQLLoader) Load(filename string) (string, error)

type YamlLoader

type YamlLoader struct{}

func NewYamlLoader

func NewYamlLoader() *YamlLoader

func (*YamlLoader) Load

func (loader *YamlLoader) Load(filename string) (string, error)

Jump to

Keyboard shortcuts

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