lone

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsRange

func IsRange(s string) bool

func Range

func Range(s string) (start int, end int, err error)

Types

type Ranger

type Ranger struct {
	Start int
	End   int
	// contains filtered or unexported fields
}

func (*Ranger) IsRange

func (r *Ranger) IsRange(s string) bool

func (*Ranger) Parse

func (r *Ranger) Parse(s string) error

func (*Ranger) Regexp

func (r *Ranger) Regexp() (*regexp.Regexp, error)

func (*Ranger) String

func (r *Ranger) String() string

func (*Ranger) Unsigned

func (r *Ranger) Unsigned() error

Unsigned returns an error if the range contains a negative number.

func (*Ranger) Validate

func (r *Ranger) Validate() error

Validate returns an error if start > end.

Jump to

Keyboard shortcuts

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