compare

package
v0.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2026 License: Apache-2.0, MIT Imports: 10 Imported by: 0

Documentation

Overview

package compare compares versions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Floats added in v0.2.0

func Floats(ctx *types.Context, operator, g, w string) (bool, error)

func Integers added in v0.2.0

func Integers(ctx *types.Context, operator, g, w string) (bool, error)

func IntegersOrFloats added in v0.2.0

func IntegersOrFloats[T Number](ctx *types.Context, operator string, got, want T) (bool, error)

func Optimistic added in v0.2.0

func Optimistic(ctx *types.Context, operator, got, want string) bool

func Strings

func Strings(ctx *types.Context, operator, got, want string) (bool, error)

func VersionSegment added in v0.3.0

func VersionSegment(
	ctx *types.Context,
	operator, gotStr, wantStr string,
	segment uint,
) (bool, error)

func Versions added in v0.2.0

func Versions(
	ctx *types.Context,
	operator, gotStr, wantStr string,
) (bool, error)

Types

type Number added in v0.2.0

type Number interface {
	int | float32 | float64
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL