ranges

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2024 License: MIT Imports: 5 Imported by: 0

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