Documentation
¶
Overview ¶
Cobra CLI command to validate batches of ABCD Bank Credit Card numbers
Implementation of the HackerRank code challenge.
Validates lines of data provided either by unix pipe or file path.
Usage:
validate [flags]
Flags:
-f, --file string path to a file containing the data to validate -h, --help help for validate -v, --verbose output full validation result with input text and the error messages
Index ¶
Constants ¶
View Source
const MAXLINES = 99
Variables ¶
This section is empty.
Functions ¶
func InitValidationCmdFlags ¶
func NewAbcdBankValidator ¶
func NewAbcdBankValidator() abcdBankValidator
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.