(name string, from []string, to string)
| 733 | } |
| 734 | |
| 735 | func replaceSeparators(name string, from []string, to string) string { |
| 736 | result := name |
| 737 | for _, sep := range from { |
| 738 | result = strings.Replace(result, sep, to, -1) |
| 739 | } |
| 740 | // Type convert to indicate normalization has been done. |
| 741 | return result |
| 742 | } |
| 743 | |
| 744 | func wordSepNormalizeFunc(f *FlagSet, name string) NormalizedName { |
| 745 | seps := []string{"-", "_"} |
no test coverage detected