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

Method Get

config/config.go:72–86  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

70}
71
72func (config *Config) Get(key string) (v *Config) {
73 if config.propsMap == nil {
74 config.propsMap = make(map[string]*Config)
75 }
76 if v, ok := config.propsMap[key]; ok {
77 return v
78 } else {
79 v = &Config{
80 name: key,
81 }
82 config.propsMap[key] = v
83 config.props = append(config.props, v)
84 return v
85 }
86}
87
88func (config Config) Has(key string) (ok bool) {
89 if config.propsMap == nil {

Callers 8

ParseMethod · 0.95
ParseDefaultYamlMethod · 0.95
ParseUserFileMethod · 0.95
ParseModifyFileMethod · 0.95
ReceiveRequestMethod · 0.45
schemaMethod · 0.45
GetFormilyMethod · 0.45
ParseGlobalMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected