summaryrefslogtreecommitdiff
path: root/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'config.go')
-rw-r--r--config.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/config.go b/config.go
index 0527294..eabc8b0 100644
--- a/config.go
+++ b/config.go
@@ -11,7 +11,6 @@ import (
var defaultConfig string
type CeresConfig struct {
- Path string
HttpAddress string `json:"http_address"`
StorageFilePath string `json:"storage_file_path"`
}
@@ -25,8 +24,8 @@ func init() {
}
}
-func (c *CeresConfig) Read() {
- data, err := os.ReadFile(c.Path)
+func (c *CeresConfig) Read(path string) {
+ data, err := os.ReadFile(path)
if err != nil {
log.Fatal(err)
}