Help us shape the future of Go! Take the 2026 Go Developer Survey

utils

package
v0.0.56 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Number

type Number interface {
	int64 | uint64
}

type Rng

type Rng[T Number] struct {
	// contains filtered or unexported fields
}

URng represents a single unsigned range

func (*Rng[T]) IsInRange

func (r *Rng[T]) IsInRange(value T) bool

func (*Rng[T]) String

func (r *Rng[T]) String() string

type Rnges

type Rnges[T Number] struct {
	// contains filtered or unexported fields
}

Rnges represents a collection of rng (range)

func NewRnges

func NewRnges[T Number]() *Rnges[T]

func (*Rnges[T]) AddRange

func (r *Rnges[T]) AddRange(min, max T)

func (*Rnges[T]) IsWithinAnyRange

func (r *Rnges[T]) IsWithinAnyRange(val T) bool

func (*Rnges[T]) String

func (r *Rnges[T]) String() string

Jump to

Keyboard shortcuts

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