MCPcopy Index your code
hub / github.com/Monibuca/engine / equal

Function equal

config/config.go:289–301  ·  view source on GitHub ↗
(vwm, v any)

Source from the content-addressed store, hash-verified

287}
288
289func equal(vwm, v any) bool {
290 ft := reflect.TypeOf(vwm)
291 switch ft {
292 case regexpType:
293 return vwm.(Regexp).String() == v.(Regexp).String()
294 default:
295 switch ft.Kind() {
296 case reflect.Slice, reflect.Array, reflect.Map:
297 return reflect.DeepEqual(vwm, v)
298 }
299 return vwm == v
300 }
301}
302
303func (config *Config) GetMap() map[string]any {
304 m := make(map[string]any)

Callers 1

ParseModifyFileMethod · 0.85

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected