MCPcopy Index your code
hub / github.com/writefreely/writefreely / IsValid

Function IsValid

semver.go:42–45  ·  view source on GitHub ↗

IsValid reports whether v is a valid semantic version string.

(v string)

Source from the content-addressed store, hash-verified

40
41// IsValid reports whether v is a valid semantic version string.
42func 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.

Callers

nothing calls this directly

Calls 1

semParseFunction · 0.85

Tested by

no test coverage detected