Skip to content

Commit

Permalink
read me fill
Browse files Browse the repository at this point in the history
  • Loading branch information
akriventsev committed Oct 28, 2020
1 parent 45d7f4b commit fa8855b
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,26 @@
# go-card

# go-card

Basic credit card structure with validation using the [Luhn algorithm](http://en.wikipedia.org/wiki/Luhn_algorithm)


## Installation

```bash
go get github.com/anaximen/go-card
```

## Quick Start

```go
// Initialize a new card:
card,err := card.NewCard("4716339239466898", "334", 2023, 12, "Ivanov Ivan")

if err!= nil {
fmt.Print(err)
}
...

expired := card.Expired()

maskedNumber := card.MaskedNumber()

0 comments on commit fa8855b

Please sign in to comment.