pairs

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2016 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GeneratePairs

func GeneratePairs(src []string) [][]string

GeneratePairs takes a src array and returns an array of pairs. If the number of elements in the src array is not even the last pair is gonna have an additional element

func Shuffle

func Shuffle(src []string, seed int64) []string

Shuffle shuffles an array.

src is the source array that is gonna be shuffled, a copy is made.

seed is an integer to initialize a randomized source. The seed can be something like time.Now().UnixNano()

Types

type Team

type Team []string

type Teams

type Teams map[string]Team

Jump to

Keyboard shortcuts

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