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

Method Range

config/config.go:59–65  ·  view source on GitHub ↗
(f func(key string, value Config))

Source from the content-addressed store, hash-verified

57}
58
59func (config *Config) Range(f func(key string, value Config)) {
60 if m, ok := config.GetValue().(map[string]Config); ok {
61 for k, v := range m {
62 f(k, v)
63 }
64 }
65}
66
67func (config *Config) IsMap() bool {
68 _, ok := config.GetValue().(map[string]Config)

Callers 1

AssignMethod · 0.45

Calls 1

GetValueMethod · 0.95

Tested by

no test coverage detected