add version constraints

This commit is contained in:
Aneurin Barker Snook
2024-07-12 12:11:18 +01:00
parent cac475d2f2
commit 33d31f84be
5 changed files with 185 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
package version
// Constraint enables matching a version based on lower and upper bounds.
type Constraint struct {
Gt *Version // Greater than...
Gte *Version // Greater than or equal to...
Lt *Version // Less than...
Lte *Version // Less than or equal to...
}