Simple coupon generating library written in Go. The algorithm for code generation is from Grantm's CouponCode
$ go get github.com/nullbus/coupon/coupon-gen
$ coupon-gen
package main
import (
"fmt"
"github.com/nullbus/coupon"
)
func main() {
generator := coupon.Generator{}
fmt.Println("Yay! coupon code:", generator.Generate())
}
For more information about code, see GoDoc