Remove debugging
This commit is contained in:
parent
9dce529fe5
commit
61ff1352c4
@ -4,7 +4,6 @@ package userConfig
|
||||
import (
|
||||
"bytes"
|
||||
"errors"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"strings"
|
||||
|
||||
@ -56,11 +55,9 @@ func (gf *GeneralConfig) Load() error {
|
||||
func (gf *GeneralConfig) Save() error {
|
||||
buf := new(bytes.Buffer)
|
||||
cfgPath := gf.Path + "/" + gf.Name + ".conf"
|
||||
fmt.Println("Writing Config File: " + cfgPath)
|
||||
if err := toml.NewEncoder(buf).Encode(gf); err != nil {
|
||||
return err
|
||||
}
|
||||
fmt.Println("Writing Config File: " + buf.String())
|
||||
return ioutil.WriteFile(cfgPath, buf.Bytes(), 0644)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user