MCPcopy Create free account
hub / github.com/Monibuca/engine / GetMap

Method GetMap

config/config.go:303–318  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

301}
302
303func (config *Config) GetMap() map[string]any {
304 m := make(map[string]any)
305 for k, v := range config.propsMap {
306 if v.props != nil {
307 if vv := v.GetMap(); vv != nil {
308 m[k] = vv
309 }
310 } else if v.GetValue() != nil {
311 m[k] = v.GetValue()
312 }
313 }
314 if len(m) > 0 {
315 return m
316 }
317 return nil
318}
319
320var regexPureNumber = regexp.MustCompile(`^\d+$`)
321

Callers 1

API_getConfigMethod · 0.80

Calls 1

GetValueMethod · 0.80

Tested by

no test coverage detected