creditcardvalidator

package module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2021 License: GPL-3.0 Imports: 2 Imported by: 0

README

credit-card-validator

Credit Card Validation Library with Go programing language

usage

go get example.com/mymodule@v0.1.0

valid syntaxes

{
	"valid credit card",
	"4539 1488 0343 6467",
},
{
	"valid credit card",
	"4539_1488_0343_6467",
},
{
	"valid credit card",
	"4539-1488-0343-6467",
},
{
	"invalid credit card",
	"a539-1488-0343-6467",
},
{
	"invalid credit card",
	"4539*1488-0343-6467",
},

Documentation

Overview

Package creditcardvalidator implements Valid function for validation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Valid

func Valid(s string) bool

Valid validates given string of credit number with luhn algorithm

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL