feat(升级依赖): 升级golang.org/x/text到v0.41.0

This commit is contained in:
2026-08-20 22:31:03 +08:00
parent be3d2225df
commit d3a364369d
5 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -4,5 +4,5 @@ go 1.25.0
require (
github.com/ipipdotnet/ipdb-go v1.3.3
golang.org/x/text v0.40.0
golang.org/x/text v0.41.0
)
+2 -2
View File
@@ -1,4 +1,4 @@
github.com/ipipdotnet/ipdb-go v1.3.3 h1:GLSAW9ypLUd6EF9QNK2Uhxew9Jzs4XMJ9gOZEFnJm7U=
github.com/ipipdotnet/ipdb-go v1.3.3/go.mod h1:yZ+8puwe3R37a/3qRftXo40nZVQbxYDLqls9o5foexs=
golang.org/x/text v0.40.0 h1:Ub2Z6/xjgF1WrYQz2nuITOEegKFtiIy+rieRJ5lHZKs=
golang.org/x/text v0.40.0/go.mod h1:hpnzDAfGV753zIKo+wk3u1bVKCGPbrnF7+7LBF/UHVY=
golang.org/x/text v0.41.0 h1:vz/seA0lnX87Othu2f/0L24RcgrXD9/YFTSuGjj3rH8=
golang.org/x/text v0.41.0/go.mod h1:jvf1O8ajNzZqhSrQBPbutR/EB83Cc0CFrezNQIwbb5M=
+1 -1
View File
@@ -69,7 +69,7 @@ func (c *Client) QueryIP(ip string) (location *Location, err error) {
return nil, errors.New("data type not support")
}
if err == nil && location != nil {
c.cache.Add(ip, location)
c.cache.Add(ip, location.Clone())
}
return location, err
}