loader

package
v0.0.0-...-c5d59ff Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Loader

type Loader struct {
	Providers []Provider
}

func (*Loader) AddProvider

func (l *Loader) AddProvider(provider Provider)

func (*Loader) Load

func (l *Loader) Load(path string) (io.ReadSeeker, error)

type Provider

type Provider interface {
	Name() string
	Exists(path string) bool
	Load(path string) (io.ReadSeeker, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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