validator

package
v0.0.0-...-b30915f Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrFormatInvalid      = errors.New("格式错误")
	ErrAddressInvalid     = errors.New("地址码错误")
	ErrBirthFormatInvalid = errors.New("出生日期格式错误")
	ErrBirthRangeInvalid  = errors.New("出生日期范围错误")
	ErrSumInvalid         = errors.New("校验和错误")
)

Functions

This section is empty.

Types

type IDCard

type IDCard struct {
	Number string
}

func (*IDCard) Validate

func (i *IDCard) Validate() (flag bool, err error)

校验

Jump to

Keyboard shortcuts

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