csv-utils: github.com/mandolyte/csv-utils Index | Files | Directories

package rangespec

import "github.com/mandolyte/csv-utils"

Index

Package Files

rangespec.go

type RangeSpec Uses

type RangeSpec struct {
    Max uint64
    // contains filtered or unexported fields
}

RangeSpec parses a range specification, such as: 1,3,5-8,12- It will return a slice of RangeSpec, being two ints, a start and a stop Ranges start at 1, not zero.

func New Uses

func New(r string) (*RangeSpec, error)

New takes a range specification string and returns a slice of RangeSpec structs

func (*RangeSpec) InRange Uses

func (rs *RangeSpec) InRange(num uint64) bool

InRange will test whehter a number is in the range specification

Directories

PathSynopsis
catcsv
comparecsv
cryptcsv
dedupcsv
diffcsv
editcsv
obfuscatecsv
pivotcsv
recursecsv
recursedata
reordercsv
searchcsv
sortcsv
splitcsv
transformcsv

Package rangespec imports 4 packages (graph) and is imported by 5 packages. Updated 2019-03-18. Refresh now. Tools for package owners.