numrange

package
v1.3.0-sp8 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NumRange

type NumRange struct {
	// Op can be '>' '<' '=' '-' '!'.
	// they are larger,smaller,equal,between,not
	Op   int
	Num1 int
	Num2 int
}

func ParseNumRange

func ParseNumRange(s string) (r *NumRange, err error)

func (*NumRange) Generate

func (r *NumRange) Generate() int

func (*NumRange) Match

func (r *NumRange) Match(num int) bool

Jump to

Keyboard shortcuts

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