Documentation
¶
Overview ¶
package compare compares versions
Index ¶
- func Floats(ctx *types.Context, operator, g, w string) (bool, error)
- func Integers(ctx *types.Context, operator, g, w string) (bool, error)
- func IntegersOrFloats[T Number](ctx *types.Context, operator string, got, want T) (bool, error)
- func Optimistic(ctx *types.Context, operator, got, want string) bool
- func Strings(ctx *types.Context, operator, got, want string) (bool, error)
- func VersionSegment(ctx *types.Context, operator, gotStr, wantStr string, segment uint) (bool, error)
- func Versions(ctx *types.Context, operator, gotStr, wantStr string) (bool, error)
- type Number
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IntegersOrFloats ¶ added in v0.2.0
func Optimistic ¶ added in v0.2.0
func VersionSegment ¶ added in v0.3.0
Types ¶
Click to show internal directories.
Click to hide internal directories.