fix: i18n & other optimizations

This commit is contained in:
meilin.huang
2024-11-23 17:23:18 +08:00
parent bffa9c2676
commit cda2963e1c
40 changed files with 400 additions and 324 deletions

View File

@@ -5,6 +5,11 @@ import (
"strings"
)
// AsArray 将可变参数列表为数组
func AsArray[T comparable](el ...T) []T {
return el
}
// 数组比较
// 依次返回,新增值,删除值,以及不变值
func ArrayCompare[T comparable](newArr []T, oldArr []T) ([]T, []T, []T) {