MCPcopy Index your code
hub / github.com/duke-git/lancet / ExampleIsZeroValue

Function ExampleIsZeroValue

validator/validator_example_test.go:417–433  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

415}
416
417func ExampleIsZeroValue() {
418 result1 := IsZeroValue("")
419 result2 := IsZeroValue(0)
420 result3 := IsZeroValue("abc")
421 result4 := IsZeroValue(1)
422
423 fmt.Println(result1)
424 fmt.Println(result2)
425 fmt.Println(result3)
426 fmt.Println(result4)
427
428 // Output:
429 // true
430 // true
431 // false
432 // false
433}
434
435func ExampleIsGBK() {
436 str := "你好"

Callers

nothing calls this directly

Calls 1

IsZeroValueFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…