Versions in this module Expand all Collapse all v0 v0.4.2 Dec 8, 2022 v0.4.1 Jun 13, 2019 Changes in this version type Addr + Code int + District string v0.2.1 Jul 13, 2018 Changes in this version + const Female + const IDCardLength + const IDCardModBase + const Male + var ErrInvalidIDCardNo = fmt.Errorf("身份证号不合法") + func BenchmarkIDNum(b *testing.B) + type Addr struct + City string + CityCode int + Province string + func (addr *Addr) InitAddr(code int) + type IDCard string + func (card IDCard) Decode() (IDCardDetail, error) + func (card IDCard) Valid() bool + type IDCardDetail struct + Birthday time.Time + Sex int