mirror of
https://github.com/bcicen/ctop.git
synced 2024-08-30 18:23:19 +00:00
rename ConfigFile to File because config.ConfigFile
stutters. Instead it's config.File
This commit is contained in:
parent
93556a1754
commit
8d8f1e72eb
@ -13,13 +13,13 @@ var (
|
|||||||
xdgRe = regexp.MustCompile("^XDG_*")
|
xdgRe = regexp.MustCompile("^XDG_*")
|
||||||
)
|
)
|
||||||
|
|
||||||
type ConfigFile struct {
|
type File struct {
|
||||||
Options map[string]string `toml:"options"`
|
Options map[string]string `toml:"options"`
|
||||||
Toggles map[string]bool `toml:"toggles"`
|
Toggles map[string]bool `toml:"toggles"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func exportConfig() ConfigFile {
|
func exportConfig() File {
|
||||||
c := ConfigFile{
|
c := File{
|
||||||
Options: make(map[string]string),
|
Options: make(map[string]string),
|
||||||
Toggles: make(map[string]bool),
|
Toggles: make(map[string]bool),
|
||||||
}
|
}
|
||||||
@ -33,7 +33,7 @@ func exportConfig() ConfigFile {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Read() error {
|
func Read() error {
|
||||||
var config ConfigFile
|
var config File
|
||||||
|
|
||||||
path, err := getConfigPath()
|
path, err := getConfigPath()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user