ranges

package
v1.0.69 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: MIT Imports: 2 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

Format formats the given ranges as a human-readable string of start and end hours.

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