jsonloader

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2021 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 {

	// Fail with error if file is not found
	FailIfNotExist bool
	// contains filtered or unexported fields
}

func NewLoader

func NewLoader(m *cfgmetadata.MetaData, fileNames ...string) *Loader

func (*Loader) Load

func (fl *Loader) Load() error

func (*Loader) MustExist

func (fl *Loader) MustExist() *Loader

MustExist sets FailIfNotExist to true

func (*Loader) PrintConfig

func (fl *Loader) PrintConfig(w io.Writer) error

func (*Loader) WithFiles

func (fl *Loader) WithFiles(fileNames ...string) *Loader

Jump to

Keyboard shortcuts

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