gitlab.com/evatix-go/core@v1.3.55/iserror/AllEmpty.go (about)

     1  package iserror
     2  
     3  func AllEmpty(errorItems ...error) bool {
     4  	if len(errorItems) == 0 {
     5  		return true
     6  	}
     7  
     8  	for _, err := range errorItems {
     9  		if err != nil {
    10  			return false
    11  		}
    12  	}
    13  
    14  	return true
    15  }