unique

package
v0.0.0-...-914d145 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2017 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSuite

func NewSuite() tests.Suite

NewSuite returns a fresh Suite

Types

type Sorter

type Sorter struct {
	// contains filtered or unexported fields
}

Sorter sorts a set of key-value pairs by key

func NewSorter

func NewSorter() *Sorter

NewSorter returns a fresh Sorter

func (*Sorter) Add

func (s *Sorter) Add(key uint64, value string)

Add stores a new item in the Sorter

func (*Sorter) Sort

func (s *Sorter) Sort()

Sort performs a radix sort of the values

type Suite

type Suite struct {
	// contains filtered or unexported fields
}

Suite checks for unique values

func (*Suite) Run

func (f *Suite) Run(src *csv.Reader, dst io.Writer) (err error)

Run reads an entire CSV, noting unique values as it goes

Jump to

Keyboard shortcuts

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