gitlab.com/evatix-go/core@v1.3.55/conditional/Setter.go (about)

     1  package conditional
     2  
     3  import "gitlab.com/evatix-go/core/issetter"
     4  
     5  func Setter(
     6  	isTrue bool,
     7  	trueValue, falseValue issetter.Value,
     8  ) issetter.Value {
     9  	if isTrue {
    10  		return trueValue
    11  	}
    12  
    13  	return falseValue
    14  }