loader

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2020 License: Unlicense Imports: 3 Imported by: 9

Documentation

Index

Constants

View Source
const DirCount = 2

DirCount defines the number of subdirectories

View Source
const DirPerm = 0755

DirPerm defines directory permission

Variables

This section is empty.

Functions

This section is empty.

Types

type Loader

type Loader struct {
	// contains filtered or unexported fields
}

Loader represents a loader

func New

func New(basedir, filename string) (*Loader, error)

New creates a new loader

func (*Loader) CleanUp

func (l *Loader) CleanUp() bool

CleanUp cleans previously loaded data file, and returns bool

func (*Loader) DropIn

func (l *Loader) DropIn(file string) (string, error)

DropIn drops given file into next subdirectory, and returns the filepath

func (*Loader) FindAny

func (l *Loader) FindAny() (string, bool)

FindAny tries finding a file to load in any existing subdirectiries, and returns its filepath

Jump to

Keyboard shortcuts

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