gitlab.com/evatix-go/core@v1.3.55/corevalidator/BaseValidatorCoreCondition.go (about) 1 package corevalidator 2 3 type BaseValidatorCoreCondition struct { 4 ValidatorCoreCondition *ValidatorCoreCondition `json:"ValidatorCoreCondition,omitempty"` 5 } 6 7 func (it *BaseValidatorCoreCondition) ValidatorCoreConditionDefault() ValidatorCoreCondition { 8 if it.ValidatorCoreCondition != nil { 9 return *it.ValidatorCoreCondition 10 } 11 12 it.ValidatorCoreCondition = &ValidatorCoreCondition{} 13 14 return *it.ValidatorCoreCondition 15 }