Documentation ¶
Overview ¶
config package to read configuration files
Index ¶
Constants ¶
View Source
const DefaultConfigFileContent = `` /* 322-byte string literal not displayed */
View Source
const DefaultConfigFilePath = ".config/bdsicego/config.yml"
Variables ¶
This section is empty.
Functions ¶
func GetDefaultConfigFilePath ¶
returns a hard-coded and architecture-dependant path to the config file.
Types ¶
type BDSICEConfig ¶
type BDSICEConfig struct { DataLocalPath string `yaml:"path"` DatabaseLocalPath string `yaml:"dblocalpath"` UpdateLocalPath string `yaml:"updatelocalpath"` UpdateURL string `yaml:"updateurl"` BulletinURL string `yaml:"bulletinurl"` DownloadURL string `yaml:"downloadurl"` UserAgent string `yaml:"useragent"` Debug bool `yaml:"debug"` PlotViewer string `yaml:"plotviewer"` }
func GetConfig ¶
func GetConfig() (*BDSICEConfig, error)
func GetConfig(filePath string) *BDSICEConfig {
Click to show internal directories.
Click to hide internal directories.