Helper
Pointer
x1 := help.Ptr[string]("hello")
x2 := help.Ptr[int64](123)
x3 := help.Ptr[bool](false)Empty
help.IsEmpty(nil) // true
help.IsEmpty("") // true
help.IsEmpty(0) // true
help.IsEmpty(false) // true
help.IsEmpty([]string{}) // true
help.IsEmpty(help.Ptr[int64](0)) // false
var a *string
help.IsEmpty(a) // true
var b struct{}
help.IsEmpty(b) // trueValidator
Add help.Validator() to Hertz configuration
Unified Error
Random
Reverse
Shuffle
Last updated
Was this helpful?