Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/apptimedev/go-pin-code
- Owner: apptimedev
- License: bsd-3-clause
- Archived: true
- Created: 2022-07-06T20:41:24.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-20T00:23:03.000Z (almost 2 years ago)
- Last Synced: 2024-06-21T18:10:48.676Z (5 months ago)
- Topics: code, digit, go, golang, otp
- Language: Go
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-golang-repositories - go-pin-code - digit pin code generator for Golang. (Repositories)
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.