MCPcopy Create free account
hub / github.com/nsf/gocode / read

Method read

config.go:188–200  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

186}
187
188func (this *config) read() error {
189 data, err := ioutil.ReadFile(config_file())
190 if err != nil {
191 return err
192 }
193
194 err = json.Unmarshal(data, this)
195 if err != nil {
196 return err
197 }
198
199 return nil
200}
201
202func quoted(v interface{}) string {
203 switch v.(type) {

Callers 2

do_serverFunction · 0.80
run_testFunction · 0.80

Calls 1

config_fileFunction · 0.70

Tested by

no test coverage detected