Basic credit card structure with validation using the Luhn algorithm
go get github.com/akriventsev/go-card
// 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()