Documentation ¶
Overview ¶
Package config loads the configuration for polldot. If a configuration file is not found, a new one is created from default values.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrHomeless = errors.New("HOME must be set")
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { URL string `json:"url"` // the file to retreive and check for '.' // contains filtered or unexported fields }
Config contains all the fields from the configuration file.
type ErrVanilla ¶
type ErrVanilla struct {
// contains filtered or unexported fields
}
ErrVanilla is returned when no configurationfile is found and a new file is written. The content of the file corresponds to the value of the cfg variable just after defaults().
func (ErrVanilla) Error ¶
func (e ErrVanilla) Error() string
Click to show internal directories.
Click to hide internal directories.