data

package
v0.0.0-...-94a580d Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package data enables commands to painlessly read values from file or stdin

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(input string, testStdin io.Reader) (string, error)

func Validate

func Validate(path string, validator ValidatorFn) error

Validate will call a validator function on the path if it's a file, or for each file in the path if it's a directory. this is used for running custom validation logic on configuration artifacts

Types

type ValidatorFn

type ValidatorFn func(path string) error

VisitFn is a callback that gets a chance to visit each file found during a traversal with visit().

Jump to

Keyboard shortcuts

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