github.com/golang-infrastructure/go-reflect-utils@v0.0.0-20221130143747-965ef2eb09c3/zero_test.go (about)

     1  package reflect_utils
     2  
     3  import "testing"
     4  
     5  func Test(t *testing.T) {
     6  
     7  }
     8  
     9  func TestIsZero(t *testing.T) {
    10  
    11  	var a interface{}
    12  	t.Log(IsZero(a))
    13  	t.Log(IsZero(0))
    14  	t.Log(IsZero(1))
    15  
    16  }