loader

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigLoader

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

func (ConfigLoader) GlobConfigs

func (l ConfigLoader) GlobConfigs(pattern string, wd string) ([]LoadedConfig, error)

func (ConfigLoader) LoadConfig

func (l ConfigLoader) LoadConfig(path string) (LoadedConfig, error)

func (ConfigLoader) LoadConfigs

func (l ConfigLoader) LoadConfigs(paths []string) ([]LoadedConfig, error)

type LoadedConfig

type LoadedConfig interface {
	Path() string
	Data() map[string]interface{}
}

type LoadedConfigData

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

func (LoadedConfigData) Data

func (d LoadedConfigData) Data() map[string]interface{}

func (LoadedConfigData) Path

func (d LoadedConfigData) Path() string

type Loader

type Loader interface {
	LoadConfig(path string) (LoadedConfig, error)
	LoadConfigs(paths []string) ([]LoadedConfig, error)
	GlobConfigs(pattern string, cwd string) ([]LoadedConfig, error)
}

func CreateLoader

func CreateLoader(fnd app.Foundation) Loader

Jump to

Keyboard shortcuts

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