MCPcopy Create free account
hub / github.com/Tylous/SourcePoint / getConf

Method getConf

SourcePoint.go:98–110  ·  view source on GitHub ↗
(yamlfile string)

Source from the content-addressed store, hash-verified

96}
97
98func (c *conf) getConf(yamlfile string) *conf {
99
100 yamlFile, err := ioutil.ReadFile(yamlfile)
101 if err != nil {
102 log.Printf("yamlFile.Get err #%v ", err)
103 }
104 err = yaml.Unmarshal(yamlFile, c)
105 if err != nil {
106 log.Fatalf("Unmarshal: %v", err)
107 }
108
109 return c
110}
111
112func options() *FlagOptions {
113 sleeptime := flag.String("Sleep", "", "Initial beacon sleep time")

Callers 1

mainFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected