Skip to content

nullbus/coupon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Go version of coupon code generation library of https://github.com/grantm/Algorithm-CouponCode

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages