ranges

package
v1.0.40 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollapseAndFormat

func CollapseAndFormat(values []int) string

func Format

func Format(ranges []Range) string

Types

type Range

type Range struct {
	// contains filtered or unexported fields
}

func Collapse

func Collapse(values []int) []Range

func New

func New(start, end int) Range

func Single

func Single(value int) Range

Jump to

Keyboard shortcuts

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