values

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DirectoryDataFiles

func DirectoryDataFiles(directory string, pattern string) ([]string, bool)

DirectoryDataFiles returns all data files of a given directory matching the provided pattern. Only the filetypes give in the description of the LoadMap method are considered. The operation is non-recursive.

The pattern syntax is the same as the one for fmt.Match.

func NewDirectory

func NewDirectory(path string, groups []string, skipEval bool, ejsonSettings ejson.Settings) (*directory, error)

func NewFile

func NewFile(path string, skipEval bool, ejsonSettings ejson.Settings) (*file, error)

Types

type Values

type Values interface {
	YAML() ([]byte, error)
	JSON() ([]byte, error)
	Map() map[string]interface{}
}

func New

func New(path string, groups []string, skipEval bool, ejsonSettings ejson.Settings) (Values, error)

Jump to

Keyboard shortcuts

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