EnumReplace removes all non ident symbols (all but letters, numbers and underscore) and returns valid ident name for provided name.
(value string)
| 42 | // EnumReplace removes all non ident symbols (all but letters, numbers and |
| 43 | // underscore) and returns valid ident name for provided name. |
| 44 | func EnumReplace(value string) string { |
| 45 | return strings.Map(enumReplacer, value) |
| 46 | } |
| 47 | |
| 48 | // EnumValueName removes all non ident symbols (all but letters, numbers and |
| 49 | // underscore) and converts snake case ident to camel case. |
no outgoing calls
no test coverage detected