Package apptimedev/go-pin-code
implements a 6-digit pin code generator.
go get -u github.com/apptimedev/go-pin-code
Generate a 6-digit pin code:
import (
"fmt"
"github.com/apptimedev/go-pin-code"
)
func main() {
c, s := pincode.GenSix()
fmt.Printf("int: %d\n", c)
fmt.Printf("string: %s\n", s)
}
BSD licensed. See the LICENSE file for details.