MCPcopy Create free account
hub / github.com/kataras/iris / Match

Function Match

versioning/version.go:94–101  ·  view source on GitHub ↗

Match reports whether the request matches the expected version. This function is just a helper, better use the Group instead.

(ctx *context.Context, expectedVersion string)

Source from the content-addressed store, hash-verified

92// Match reports whether the request matches the expected version.
93// This function is just a helper, better use the Group instead.
94func Match(ctx *context.Context, expectedVersion string) bool {
95 validate, err := semver.ParseRange(expectedVersion)
96 if err != nil {
97 return false
98 }
99
100 return matchVersionRange(ctx, validate)
101}
102
103func matchVersionRange(ctx *context.Context, validate semver.Range) bool {
104 gotVersion := GetVersion(ctx)

Callers

nothing calls this directly

Calls 1

matchVersionRangeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…