Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

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

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages