This commit is contained in:
兔子
2023-08-26 17:36:50 +08:00
parent c088498118
commit 062b2bb768
24 changed files with 294 additions and 448 deletions

View File

@@ -26,7 +26,7 @@ func Ternary[T any](IF bool, TRUE T, FALSE T) T {
// Default - 设置默认值
func Default[T any](param T, value ...T) (result T) {
if IsEmpty(param) {
if Is.Empty(param) {
if len(value) > 0 {
return value[0]
}