From 2a9f10fa970de5f9c70fa1e7293397526fa240a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=85=89=E6=98=A5?= Date: Sun, 24 Jul 2022 14:59:35 +0800 Subject: [PATCH] - update --- README.md | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 79565e0..2969b1e 100644 --- a/README.md +++ b/README.md @@ -2,15 +2,15 @@ Golang Verify -📦 Golang Verify +📦 Golang 手机号验证 [comment]: <> (go) [![godoc](https://pkg.go.dev/badge/github.com/dtapps/goverify?status.svg)](https://pkg.go.dev/github.com/dtapps/goverify) [![goproxy.cn](https://goproxy.cn/stats/github.com/dtapps/goverify/badges/download-count.svg)](https://goproxy.cn/stats/github.com/dtapps/goverify) -[![goreportcard.com](https://goreportcard.com/badge/github.com/dtapps/goverify )](https://goreportcard.com/report/github.com/dtapps/goverify) +[![goreportcard.com](https://goreportcard.com/badge/github.com/dtapps/goverify )](https://goreportcard.com/report/github.com/dtapps/goverify) [![deps.dev](https://img.shields.io/badge/deps-go-red.svg)](https://deps.dev/go/github.com%2Fdtapps%2Fgoverify) -#### 安装使用 +#### 安装 ```go go get -v -u github.com/dtapps/goverify @@ -19,7 +19,21 @@ go get -v -u github.com/dtapps/goverify #### 导入 ```go +import "github.com/dtapps/goverify" +``` + +#### 使用 + +```go +package main + import ( - "github.com/dtapps/goverify" + "github.com/dtapps/goverify" + "testing" ) + +func TestChinaMobile(t *testing.T) { + t.Log(goverify.ChinaMobile("13800138000")) +} ``` +