doc: update doc and example for validator

This commit is contained in:
dudaodong committed 2023-04-06 10:46:31 +08:00
1 parent c53d541a6b
commit 18f01ffd75
6 files changed
+316 -86

No files matched your search

+2 -2
View File
@@ -285,8 +285,8 @@ func ExampleIsIntStr() {
func ExampleIsJSON() {
result1 := IsJSON("{}")
result2 := IsJSON("{\"name\": \"test\"}")
result3 := IsIntStr("")
result4 := IsIntStr("abc")
result3 := IsJSON("")
result4 := IsJSON("abc")
fmt.Println(result1)
fmt.Println(result2)