gitlab.com/evatix-go/core@v1.3.55/coredata/coredynamic/ValueStatus.go (about)

     1  package coredynamic
     2  
     3  import "gitlab.com/evatix-go/core/constants"
     4  
     5  type ValueStatus struct {
     6  	IsValid bool
     7  	Message string
     8  	Index   int
     9  	Value   interface{}
    10  }
    11  
    12  func InvalidValueStatusNoMessage() *ValueStatus {
    13  	return InvalidValueStatus(constants.EmptyString)
    14  }
    15  
    16  func InvalidValueStatus(message string) *ValueStatus {
    17  	return &ValueStatus{
    18  		IsValid: false,
    19  		Message: message,
    20  		Index:   constants.InvalidNotFoundCase,
    21  		Value:   nil,
    22  	}
    23  }