gitlab.com/evatix-go/core@v1.3.55/isany/Zero.go (about)

     1  package isany
     2  
     3  import "gitlab.com/evatix-go/core/internal/reflectinternal"
     4  
     5  // Zero
     6  //
     7  //  returns true if the current value is null
     8  //  or reflect value is zero
     9  //
    10  // Reference:
    11  //  - Stackoverflow Example : https://stackoverflow.com/a/23555352
    12  func Zero(anyItem interface{}) bool {
    13  	return reflectinternal.IsZero(anyItem)
    14  }