作者 tangxvhui

更新依赖

@@ -6,6 +6,7 @@ require ( @@ -6,6 +6,7 @@ require (
6 github.com/golang-jwt/jwt/v4 v4.5.0 6 github.com/golang-jwt/jwt/v4 v4.5.0
7 github.com/jinzhu/copier v0.4.0 7 github.com/jinzhu/copier v0.4.0
8 github.com/jinzhu/now v1.1.5 8 github.com/jinzhu/now v1.1.5
  9 + github.com/mozillazg/go-pinyin v0.20.0
9 github.com/pkg/errors v0.9.1 10 github.com/pkg/errors v0.9.1
10 github.com/samber/lo v1.38.1 11 github.com/samber/lo v1.38.1
11 github.com/silenceper/wechat/v2 v2.1.4 12 github.com/silenceper/wechat/v2 v2.1.4
@@ -72,7 +73,6 @@ require ( @@ -72,7 +73,6 @@ require (
72 github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect 73 github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
73 github.com/modern-go/reflect2 v1.0.2 // indirect 74 github.com/modern-go/reflect2 v1.0.2 // indirect
74 github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 // indirect 75 github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 // indirect
75 - github.com/mozillazg/go-pinyin v0.20.0 // indirect  
76 github.com/onsi/gomega v1.26.0 // indirect 76 github.com/onsi/gomega v1.26.0 // indirect
77 github.com/openzipkin/zipkin-go v0.4.1 // indirect 77 github.com/openzipkin/zipkin-go v0.4.1 // indirect
78 github.com/pelletier/go-toml v1.8.1 // indirect 78 github.com/pelletier/go-toml v1.8.1 // indirect
1 package tool 1 package tool
2 2
3 import ( 3 import (
4 - "github.com/mozillazg/go-pinyin"  
5 "strings" 4 "strings"
  5 +
  6 + "github.com/mozillazg/go-pinyin"
6 ) 7 )
7 8
8 func ToPinYin(hans string, sep string) string { 9 func ToPinYin(hans string, sep string) string {