优化代码

This commit is contained in:
GoEdgeLab
2022-11-29 15:33:12 +08:00
parent 29317957d5
commit 22d04c8c23
5 changed files with 8 additions and 15 deletions

View File

@@ -6,7 +6,7 @@ import (
"regexp"
)
var RegexpDigitNumber = regexp.MustCompile("^\\d+$")
var RegexpDigitNumber = regexp.MustCompile(`^\d+$`)
func Get(object interface{}, keys []string) interface{} {
if len(keys) == 0 {