MCPcopy
hub / github.com/pocketbase/pocketbase / deleteNestedMapKey

Function deleteNestedMapKey

plugins/migratecmd/templates.go:755–769  ·  view source on GitHub ↗
(data map[string]any, parts ...string)

Source from the content-addressed store, hash-verified

753}
754
755func deleteNestedMapKey(data map[string]any, parts ...string) {
756 if len(parts) == 0 {
757 return
758 }
759
760 if len(parts) == 1 {
761 delete(data, parts[0])
762 return
763 }
764
765 v, ok := data[parts[0]].(map[string]any)
766 if ok {
767 deleteNestedMapKey(v, parts[1:]...)
768 }
769}

Callers 6

jsSnapshotTemplateMethod · 0.85
jsCreateTemplateMethod · 0.85
jsDeleteTemplateMethod · 0.85
goSnapshotTemplateMethod · 0.85
goCreateTemplateMethod · 0.85
goDeleteTemplateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…