Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SplitCamelCase ¶
SplitCamelCase splits a CamelCase identifier into words, correctly handling consecutive uppercase runs like "HTTPClient" -> ["HTTP", "Client"]. Go's RE2 lacks lookaheads, so we use a two-pass approach:
- Split with camelCaseRe (which yields ["H","T","T","P","Client"] for "HTTPClient")
- Merge consecutive single-uppercase-letter tokens into one string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.