MCPcopy Index your code
hub / github.com/MultSec/MultCheck / GetConf

Function GetConf

src/utils.go:43–57  ·  view source on GitHub ↗
(configPath string)

Source from the content-addressed store, hash-verified

41}
42
43func GetConf(configPath string) (map[string]string, error) {
44 var conf map[string]string
45
46 data, err := os.ReadFile(configPath)
47 if err != nil {
48 return conf, fmt.Errorf("failed to read file: %v", err)
49 }
50
51 err = json.Unmarshal(data, &conf)
52 if err != nil {
53 return conf, fmt.Errorf("failed to parse file: %v", err)
54 }
55
56 return conf, nil
57}

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected