gonfig

package module
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// LoadError = "Error loading the configuration"
	LoadError = GonfigError("Error loading the configuration")
	// UnsupportedFileError = "Unsupported file extension"
	UnsupportedFileError = GonfigError("Unsupported file extension")
)

Variables

This section is empty.

Functions

func Load

func Load(config interface{}, args ...string) error

Load a struct with the configuration from a config file.

Types

type GonfigError

type GonfigError string

GonfigError is an error in the module.

func (GonfigError) Error

func (g GonfigError) Error() string

Directories

Path Synopsis
examples
env
xml

Jump to

Keyboard shortcuts

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