loaders

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2021 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 interface {
	// Load loads the json from the provided uri into v.
	// Returns any errors.
	Load(uri string, v interface{}) error
}

type RawDataLoader

type RawDataLoader interface {
	// Load loads the raw bytes from the provided uri.
	// Returns the bytes and any errors.
	Load(uri string) ([]byte, error)
}

type StaticJSONLoader

type StaticJSONLoader struct{}

func (StaticJSONLoader) Load

func (StaticJSONLoader) Load(uri string, v interface{}) error

Load loads the json from the static directory in the project. Returns any errors.

type StaticRawDataLoader

type StaticRawDataLoader struct{}

func (StaticRawDataLoader) Load

func (StaticRawDataLoader) Load(uri string) ([]byte, error)

Load loads the data from the static directory in the project. Returns any errors.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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