gitlab.com/evatix-go/core@v1.3.55/corevalidator/ValidatorCoreCondition.go (about)

     1  package corevalidator
     2  
     3  type ValidatorCoreCondition struct {
     4  	IsTrimCompare        bool
     5  	IsUniqueWordOnly     bool
     6  	IsNonEmptyWhitespace bool
     7  	IsSortStringsBySpace bool
     8  }
     9  
    10  func (it *ValidatorCoreCondition) IsSplitByWhitespace() bool {
    11  	return it.IsUniqueWordOnly ||
    12  		it.IsNonEmptyWhitespace ||
    13  		it.IsSortStringsBySpace
    14  }