Documentation
¶
Overview ¶
Package lodashcase converts identifiers between camel, kebab and snake case the way lodash does.
Splitting a name into words is the whole difficulty: lodash breaks on case changes, on the boundary between letters and digits, and on runs of capitals followed by a lowercase letter, so HTTPRequest2 is HTTP, Request, 2. The case operations rely on that, and ReplaceVariableNames applies it to the identifiers in a piece of source while leaving everything else alone.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReplaceVariableNames ¶
ReplaceVariableNames applies replacer to identifier-like tokens, leaving quoted strings and escaped quotes untouched (a port of lib/Code.mjs).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.