This commit is contained in:
邹宗楠
2022-11-25 14:17:06 +08:00
parent 6ac39c8a9c
commit 7951af8df8
3 changed files with 58 additions and 45 deletions

View File

@@ -276,3 +276,16 @@ func TestGenerateGetURL(t *testing.T) {
t.Fatal("GenerateGetURL错误")
}
}
func TestUtilsIsNil(t *testing.T) {
param := make(map[string]interface{}, 0)
param["aaa"] = "1"
param["bbb"] = ""
param["ccc"] = nil
fmt.Println(param["aaa"] == nil)
fmt.Println(param["bbb"] == nil)
fmt.Println(param["ccc"] == nil)
fmt.Println(param["bbb"] == "")
fmt.Println(param["kkk"] == "")
}