MCPcopy
hub / github.com/pocketbase/pocketbase / toMap

Function toMap

plugins/migratecmd/templates.go:691–705  ·  view source on GitHub ↗
(v any)

Source from the content-addressed store, hash-verified

689}
690
691func toMap(v any) (map[string]any, error) {
692 raw, err := json.Marshal(v)
693 if err != nil {
694 return nil, err
695 }
696
697 result := map[string]any{}
698
699 err = json.Unmarshal(raw, &result)
700 if err != nil {
701 return nil, err
702 }
703
704 return result, nil
705}
706
707func diffMaps(old, new map[string]any, excludeKeys ...string) map[string]any {
708 diff := map[string]any{}

Callers 8

jsSnapshotTemplateMethod · 0.85
jsCreateTemplateMethod · 0.85
jsDeleteTemplateMethod · 0.85
jsDiffTemplateMethod · 0.85
goSnapshotTemplateMethod · 0.85
goCreateTemplateMethod · 0.85
goDeleteTemplateMethod · 0.85
goDiffTemplateMethod · 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…