mirror of
https://github.com/therootcompany/golib.git
synced 2026-11-04 15:05:00 +00:00
RawPaths walks JSON depth-first and emits flat paths with monotonically numbered type names (Root0, People2, etc.). Each type intro immediately precedes its fields, making the output streamable and order-stable. Also improves map detection heuristics: - All-numeric keys are always maps (even with 1-2 keys) - Keys containing digits detected as IDs (e.g., emp_101) - New isKnownFieldName with broad list of common field names (timestamps, flags, relations, etc.) as strong struct signal