match

package
v0.0.0-...-14b48b0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Log = log15.New()

Functions

func Eval

func Eval(pairings []Pair) error

Eval takes a []Pair and evaluates it agains a set of rules.

func SavePairings

func SavePairings(fpath string, pairings []Pair) error

Types

type Pair

type Pair struct {
	Santa  *ulist.User
	Giftee *ulist.User
}

func LoadPairings

func LoadPairings(fpath string, ul ulist.Ulist) ([]Pair, error)

func Match

func Match(ul *ulist.Ulist) ([]Pair, error)

Match takes a list of Users and returns Pairs of Santa and Giftee

Jump to

Keyboard shortcuts

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