MCPcopy Index your code
hub / github.com/cortesi/modd / Parse

Function Parse

conf/parse.go:268–275  ·  view source on GitHub ↗

Parse parses a string, and returns a completed Config

(name string, text string)

Source from the content-addressed store, hash-verified

266
267// Parse parses a string, and returns a completed Config
268func Parse(name string, text string) (*Config, error) {
269 p := &parser{name: name, text: text}
270 err := p.parse()
271 if err != nil {
272 return nil, err
273 }
274 return p.config, nil
275}

Callers 2

TestParseFunction · 0.85
TestErrorsParseFunction · 0.85

Calls 1

parseMethod · 0.95

Tested by 2

TestParseFunction · 0.68
TestErrorsParseFunction · 0.68