Documentation
¶
Index ¶
- Variables
- func EnsureDir(path string) error
- func FileExists(path string) bool
- func GetDefaultConfig() *models.AppConfig
- func InitAppDirs() error
- type Config
- func (c *Config) GetAppDir() string
- func (c *Config) GetAppSeriesDir() string
- func (c *Config) GetConfigDir() string
- func (c *Config) GetConfigPath() string
- func (c *Config) GetHomeDir() string
- func (c *Config) GetLogDir() string
- func (c *Config) GetLogPath() string
- func (c *Config) LoadConfig() *models.AppConfig
- func (c *Config) SaveConfig(config *models.AppConfig)
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfigInstance = Config{}
Functions ¶
func FileExists ¶
func GetDefaultConfig ¶
func InitAppDirs ¶
func InitAppDirs() error
Types ¶
type Config ¶
type Config struct {
HomeDir string
AppSeriesDir string
AppDir string
ConfigDir string
ConfigPath string
LogDir string
LogPath string
}
func (*Config) GetAppSeriesDir ¶
func (*Config) GetConfigDir ¶
func (*Config) GetConfigPath ¶
func (*Config) GetHomeDir ¶
func (*Config) GetLogPath ¶
func (*Config) LoadConfig ¶
func (*Config) SaveConfig ¶
Click to show internal directories.
Click to hide internal directories.