Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 563 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 563 Bytes

Coupon

Simple coupon generating library written in Go. The algorithm for code generation is from Grantm's CouponCode

Command line usage

$ go get github.com/nullbus/coupon/coupon-gen
$ coupon-gen

Code usage

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