first commit

This commit is contained in:
2024-07-23 10:23:43 +08:00
commit 7b4c2521a3
126 changed files with 15931 additions and 0 deletions

35
pkg/ddm/benchmark.go Normal file
View File

@ -0,0 +1,35 @@
package ddm
import (
"github.com/mritd/chinaid"
)
type BType uint8
const (
BMobile BType = iota
BIDNo
BName
BBankNo
BEmail
BAddress
)
func Benchmark(bType BType) string {
switch bType {
case BMobile:
return chinaid.Mobile()
case BIDNo:
return chinaid.IDNo()
case BEmail:
return chinaid.Email()
case BAddress:
return chinaid.Address()
case BName:
return chinaid.Name()
case BBankNo:
return chinaid.BankNo()
default:
return ""
}
}