util

package
v0.0.0-...-7621e06 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IntRange

type IntRange struct {
	Start, Stop uint64
}

func (IntRange) Iter

func (r IntRange) Iter(fn func(uint64) bool) bool

type Ints

type Ints []IntRange

func ParseInts

func ParseInts(s string) (Ints, bool)

ParseInts parses a string indicating ranges of integers.

e.g. `"0:7,234,1000:2333"`

func (Ints) Iter

func (i Ints) Iter(fn func(uint64) bool) bool

Jump to

Keyboard shortcuts

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