collection

package module
v0.0.0-...-1323cad Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2014 License: Apache-2.0 Imports: 4 Imported by: 0

README

golang-collection

Feature-full collection data type for Go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chunk

type Chunk struct {
	Collection Collection
	Done       bool
}

type Collection

type Collection []interface{}

func NewCollection

func NewCollection() Collection

func NewCollectionFromSet

func NewCollectionFromSet(set set.Set) (collection Collection)

func NewCollectionFromSlice

func NewCollectionFromSlice(s []interface{}) Collection

Creates and returns a reference to a collection from an existing slice

func (Collection) Chunks

func (collection Collection) Chunks(count int64) (c chan Collection, numChunks int)

func (Collection) ToCsv

func (collection Collection) ToCsv() string

func (Collection) ToInt64

func (collection Collection) ToInt64() (array []int64)

Jump to

Keyboard shortcuts

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