Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/apptimedev/go-pin-code

6-digit pin code generator for Golang.
https://github.com/apptimedev/go-pin-code

code digit go golang otp

Last synced: 2 months ago
JSON representation

6-digit pin code generator for Golang.

Awesome Lists containing this project

README

        

# Go Pin Code Generator
## apptimedev/go-pin-code

[![Apptime](https://apptime.dev/icons/icon-128x128.png)](https://apptime.dev)

---

Package `apptimedev/go-pin-code` implements a 6-digit pin code generator.

---

* [Install](#install)
* [Examples](#examples)
* [License](#license)

---

## Install

```sh
go get -u github.com/apptimedev/go-pin-code
```

## Examples

Generate a 6-digit pin code:

```go
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)
}
```

## License

BSD licensed. See the LICENSE file for details.