remove unused confg package

This commit is contained in:
c9s 2020-10-27 08:18:45 +08:00
parent 955479486a
commit 284a0676f7

View File

@ -1,24 +0,0 @@
package config
import (
"encoding/json"
"io/ioutil"
)
func LoadConfigFile(filename string, v interface{}) error {
data, err := ioutil.ReadFile(filename)
if err != nil {
return err
}
return json.Unmarshal(data, v)
}
func SaveConfigFile(filename string, v interface{}) error {
out, err := json.MarshalIndent(v, "", " ")
if err != nil {
return err
}
return ioutil.WriteFile(filename, out, 0644)
}