Documentation
¶
Overview ¶
Package idutil builds stable node IDs from name parts. It mirrors the Python original's extract._make_id and build._normalize_id so IDs generated here are byte-for-byte compatible with upstream graph.json files: NFKC-normalize, replace every non-word (Unicode) run with "_", collapse repeats, strip, fold.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeID ¶
MakeID joins one or more name parts into a canonical node ID. Empty parts are skipped; each part is stripped of leading/trailing "_" and "." before joining.
func NormalizeID ¶
NormalizeID canonicalizes an already-joined ID the same way MakeID does. Used to reconcile edge endpoints whose IDs differ only in casing or punctuation.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.