update: README

This commit is contained in:
Rogee
2025-01-23 18:51:21 +08:00
parent 80f4f6b010
commit 00c18afbdd
2 changed files with 76 additions and 3 deletions

View File

@@ -4,6 +4,7 @@ import (
"regexp"
"testing"
"github.com/samber/lo"
. "github.com/smartystreets/goconvey/convey"
)
@@ -23,8 +24,7 @@ func Test_router(t *testing.T) {
}
for _, item := range items {
match := jsonReg.FindStringSubmatch(item)
if len(match) ==2 && !lo.Contains(types, match[1]) { {
if len(match) == 2 && !lo.Contains(types, match[1]) {
}
}
})