cfgloader

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadFromEnv

func LoadFromEnv(prefix string, out interface{}) error

func LoadFromPath

func LoadFromPath(path string, out interface{}, schema []byte) error

func LoadJSON

func LoadJSON(in []byte, out interface{}, schema []byte) error

func LoadJSONFromPath

func LoadJSONFromPath(path string, out interface{}, schema []byte) error

func LoadYAML

func LoadYAML(in []byte, out interface{}, schema []byte) error

func LoadYAMLFromPath

func LoadYAMLFromPath(path string, out interface{}, schema []byte) error

Types

type FileNotFoundError

type FileNotFoundError struct {
	E string
}

func (FileNotFoundError) Error

func (e FileNotFoundError) Error() string

func (FileNotFoundError) Is

func (e FileNotFoundError) Is(target error) bool

type SchemaValidationError

type SchemaValidationError struct {
	Result *gojsonschema.Result
}

func (SchemaValidationError) Error

func (e SchemaValidationError) Error() string

func (SchemaValidationError) Is

func (e SchemaValidationError) Is(target error) bool

Jump to

Keyboard shortcuts

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