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

Method Has

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

Source from the content-addressed store, hash-verified

86}
87
88func (config Config) Has(key string) (ok bool) {
89 if config.propsMap == nil {
90 return false
91 }
92 _, ok = config.propsMap[strings.ToLower(key)]
93 return ok
94}
95
96func (config *Config) MarshalJSON() ([]byte, error) {
97 if config.propsMap == nil {

Callers 3

ParseDefaultYamlMethod · 0.95
ParseUserFileMethod · 0.95
ParseModifyFileMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected