Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEmptyInput = fmt.Errorf("input must have at least name or path")
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config provides an interface to read and write config values, thread safe.
type Input ¶
type Input struct { // File path to config file. Optional. // Name and Dir are not used for config file path if this is provided. File string // Application name. Used to construct a config file path. // Also used for log file names. Overrides what's in config file. Name string // Sub-directory to put the config file into. Optional. Dir string }
Input data to open a config file. If Dir!="" then config is placed in a sub directory.
Click to show internal directories.
Click to hide internal directories.