MCPcopy
hub / github.com/eth0izzle/shhgit / ParseConfig

Function ParseConfig

core/config.go:30–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28}
29
30func ParseConfig() (*Config, error) {
31 config := &Config{}
32
33 dir, _ := os.Getwd()
34 data, err := ioutil.ReadFile(path.Join(dir, "config.yaml"))
35 if err != nil {
36 return config, err
37 }
38
39 err = yaml.Unmarshal([]byte(data), config)
40 if err != nil {
41 return config, err
42 }
43
44 return config, nil
45}
46
47func (c *Config) UnmarshalYAML(unmarshal func(interface{}) error) error {
48 *c = Config{}

Callers 1

GetSessionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected