blob: f97f2a35b820654c3868e088cd0609697821415a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
package main
import (
_ "embed"
"encoding/json"
"log"
)
//go:embed default_config.json
var defaultConfig string
type CeresConfig struct {
HttpAddress string `json:"http_address"`
StorageFilePath string `json:"storage_file_path"`
}
var config CeresConfig
func init() {
err := json.Unmarshal([]byte(defaultConfig), &config)
if err != nil {
log.Fatal(err)
}
}
|