Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 576 Bytes

README.md

File metadata and controls

27 lines (17 loc) · 576 Bytes

Go Report Card

go-card

Basic credit card structure with validation using the Luhn algorithm

Installation

go get github.com/akriventsev/go-card

Quick Start

// 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()