package
Version:
v0.0.0-...-edc77cd
Opens a new window with list of versions in this module.
Published: Oct 17, 2022
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type App struct {
Mouse bool `mapstrcture:"mouse" json:"mouse"`
}
type Config struct {
App App `mapstrcture:"app" json:"app"`
Pip Pip `mapstrcture:"pip" json:"pip"`
Log Log `mapstrcture:"log" json:"log"`
}
Config is a structure contains configuratons data
Load reads config file
Create default config file if is not exist in OS user config dir
type Log struct {
Prefix string `mapstructure:"prefix" json:"prefix"`
Directory string `mapstructure:"directory" json:"directory"`
Level string `mapstructure:"level" json:"level"`
}
type Pip struct {
IndexURL string `mapstructure:"index-url" json:"indexURL"`
SearchURL string `mapstructure:"search-url" json:"searchURL"`
ListPageSize int `mapstructure:"list-page-size" json:"listPageSize"`
Timeout int `mapstructure:"timeout" json:"timeout"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.