Documentation ¶ Index ¶ func CollapseAndFormat(values []int) string func Format(ranges []Range) string type Range func Collapse(values []int) []Range func New(start int, end int) Range func Single(value int) Range 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 int, end int) Range func Single ¶ func Single(value int) Range Source Files ¶ View all Source files range.go Click to show internal directories. Click to hide internal directories.