pub fn go_param_name(name: &str) -> StringExpand description
Convert a Rust snake_case parameter/variable name to Go lowerCamelCase with acronym uppercasing.
Go naming conventions require that acronyms in identifiers be fully uppercased.
to_lower_camel_case alone converts base_url → baseUrl, but Go wants baseURL.
This function converts via PascalCase (which applies acronym uppercasing) then lowercases
the first “word” (the initial run of uppercase letters treated as a unit) while preserving
the case of subsequent words/acronyms:
base_url→BaseURL→baseURLapi_key→APIKey→apiKeyuser_id→UserID→userIDjson→JSON→json