validation

package
v0.0.0-...-6cf73a8 Latest Latest
Warning

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

Go to latest
Published: May 13, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdvancedPassportValidation

func AdvancedPassportValidation(passport Passport) bool

AdvancedPassportValidation ...

func SimplePassportValidation

func SimplePassportValidation(passport Passport) bool

SimplePassportValidation ...

Types

type Passport

type Passport struct {
	BirthYear      int
	IssueYear      int
	ExpirationYear int
	Height         string
	HairColor      string
	EyeColor       string
	PassportID     string
	CountryID      int
}

Passport A struct to represent the input data from day 3.

Jump to

Keyboard shortcuts

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