1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-03-01 00:35:28 +08:00

doc: update doc and example for validator

This commit is contained in:
dudaodong
2023-04-06 10:46:31 +08:00
parent c53d541a6b
commit 18f01ffd75
6 changed files with 316 additions and 86 deletions
+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)