(version string)
| 24 | } |
| 25 | |
| 26 | func normalizeVersion(version string) string { |
| 27 | version = strings.TrimSpace(version) |
| 28 | if len(version) > 1 && (version[0] == 'v' || version[0] == 'V') { |
| 29 | version = version[1:] |
| 30 | } |
| 31 | return version |
| 32 | } |
| 33 | |
| 34 | // compareVersions compares dotted numeric versions segment by segment, with |
| 35 | // missing segments treated as zero. It reports false when either version |
no outgoing calls
no test coverage detected