ranges

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2025 License: MIT Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Range

type Range struct {
	Start int64
	Len   int64
}

func Gaps

func Gaps(total Range, ranges []Range) []Range

Gaps in ranges limited by total range

func MinMax

func MinMax(a, b Range) Range

func RangeFromString

func RangeFromString(s string) Range

func SliceFromString

func SliceFromString(s string) []Range

func (Range) IsZero

func (r Range) IsZero() bool

func (Range) Stop

func (r Range) Stop() int64

func (Range) String

func (r Range) String() string

Jump to

Keyboard shortcuts

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