IsValid reports whether v is a valid semantic version string.
(v string)
| 40 | |
| 41 | // IsValid reports whether v is a valid semantic version string. |
| 42 | func IsValid(v string) bool { |
| 43 | _, ok := semParse(v) |
| 44 | return ok |
| 45 | } |
| 46 | |
| 47 | // CompareSemver returns an integer comparing two versions according to |
| 48 | // according to semantic version precedence. |
nothing calls this directly
no test coverage detected