compare

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 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) error

func Integers added in v0.2.0

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

func IntegersOrFloats added in v0.2.0

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

func Optimistic added in v0.2.0

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

func Strings

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

func VersionSegment added in v0.3.0

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

func Versions added in v0.2.0

func Versions(
	ctx *types.Context,
	operator, gotStr, wantStr string,
) 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