Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/proullon/secretsanta
- Owner: proullon
- License: mit
- Created: 2014-11-19T10:21:14.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2019-01-09T13:39:36.000Z (about 6 years ago)
- Last Synced: 2024-12-09T22:44:21.016Z (about 1 month ago)
- Language: Go
- Size: 3.91 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)
}```