Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/proullon/secretsanta

Random gift attribution for christmas
https://github.com/proullon/secretsanta

Last synced: 24 days ago
JSON representation

Random gift attribution for christmas

Awesome Lists containing this project

README

        

christmas
=========

Random gift attribution for christmas

## Example of main

```go

package main

import (
"github.com/proullon/christmas/bucket"
)

func main() {
people := []*bucket.Person{
&bucket.Person{
Email: "[email protected]",
Name: "Foo",
},
&bucket.Person{
Email: "[email protected]",
Name: "Bar",
},
&bucket.Person{
Email: "[email protected]",
Name: "Alice",
},
&bucket.Person{
Email: "[email protected]",
Name: "Bob",
},
}

conf := bucket.EmailAccount{
Port: bucket.GmailPort,
Server: bucket.GmailServer,
Email: "[email protected]",
Password: "p4$$w0rd",
Subject: "The christmas gift repartition !",
Body: "Optional body to say hello all, see you soon !",
}

// Disable possibility for Alice and Bob
// to offer a gift to each other
bucket.LoveLove("Alice", "Bob", people)

// Go !
bucket.RunChristmasBucket(people, conf)
}

```