Documentation
¶
Index ¶
- func AnyFunctions(isTrue bool, ...) []func() (result interface{}, isTake, isBreak bool)
- func AnyFunctionsExecuteResults(isTrue bool, ...) []interface{}
- func Bool(isTrue bool, trueValue, falseValue bool) bool
- func BoolByOrder(booleans ...bool) bool
- func BoolFunc(isTrue bool, trueValueFunc, falseValueFunc func() bool) bool
- func BoolFunctionsByOrder(boolFunctions ...func() bool) bool
- func BooleanTrueFunc(isTrue bool, trueValueFunc func() bool) bool
- func Booleans(isTrue bool, trueValue, falseValue []bool) []bool
- func BooleansPtr(isTrue bool, trueValue, falseValue *[]bool) *[]bool
- func Byte(isTrue bool, trueValue, falseValue byte) byte
- func Bytes(isTrue bool, trueValue, falseValue []byte) []byte
- func BytesPtr(isTrue bool, trueValue, falseValue *[]byte) *[]byte
- func BytesTrueFunc(isTrue bool, trueValueFunc func() []byte) []byte
- func DefOnNil(canBeEmpty interface{}, onNonNil interface{}) interface{}
- func ErrorFunc(isTrue bool, trueValueFunction func() error, falseValueFunction func() error) func() error
- func ErrorFunctionResult(isTrue bool, trueValueFunction func() error, falseValueFunction func() error) error
- func ErrorFunctionsExecuteResults(isTrue bool, trueValueFunctions []func() error, ...) error
- func Func(isTrue bool, trueValueFunc, falseValueFunc func() interface{}) func() interface{}
- func Int(isTrue bool, trueValue, falseValue int) int
- func Integers(isTrue bool, trueValue, falseValue []int) []int
- func IntegersPtr(isTrue bool, trueValue, falseValue *[]int) *[]int
- func IntegersPtrFunc(isTrue bool, trueValueFunc, falseValueFunc func() *[]int) *[]int
- func Interface(isTrue bool, trueValue, falseValue interface{}) interface{}
- func InterfaceFunc(isTrue bool, trueValueFunc, falseValueFunc func() interface{}) interface{}
- func Interfaces(isTrue bool, trueValue, falseValue []interface{}) []interface{}
- func InterfacesPtr(isTrue bool, trueValue, falseValue *[]interface{}) *[]interface{}
- func NilBoolVal(valuePointer *bool, defVal bool) bool
- func NilBoolValPtr(valuePointer *bool, defVal bool) *bool
- func NilByteVal(valuePointer *byte, defVal byte) byte
- func NilByteValPtr(valuePointer *byte, defVal byte) *byte
- func NilCheck(canBeEmpty interface{}, onNil interface{}, onNonNil interface{}) interface{}
- func NilDefBool(valuePointer *bool) bool
- func NilDefBoolPtr(valuePointer *bool) *bool
- func NilDefByte(valuePointer *byte) byte
- func NilDefBytePtr(valuePointer *byte) *byte
- func NilDefInt(valuePointer *int) int
- func NilDefIntPtr(valuePointer *int) *int
- func NilDefStr(strPtr *string) string
- func NilDefStrPtr(strPtr *string) *string
- func NilDefValInt(valuePointer *int, defVal int) int
- func NilOrEmptyStr(strPtr *string, onNilOrEmpty string, onNonNilOrNonEmpty string) string
- func NilOrEmptyStrPtr(strPtr *string, onNilOrEmpty string, onNonNilOrNonEmpty string) *string
- func NilStr(strPtr *string, onNil string, onNonNil string) string
- func Setter(isTrue bool, trueValue, falseValue issetter.Value) issetter.Value
- func SetterDefault(currentSetter issetter.Value, defVal issetter.Value) issetter.Value
- func String(isTrue bool, trueValue, falseValue string) string
- func StringDefault(isTrue bool, trueValue string) string
- func StringFunc(isTrue bool, trueValueFunc, falseValueFunc func() string) string
- func StringPtr(isTrue bool, trueValue, falseValue *string) *string
- func StringTrueFunc(isTrue bool, trueValueFunc func() string) string
- func Strings(isTrue bool, trueValue, falseValue []string) []string
- func StringsIndexVal(isTrue bool, slice []string, trueValue, falseValue int) string
- func StringsPtr(isTrue bool, trueValue, falseValue *[]string) *[]string
- func StringsTrueFunc(isTrue bool, trueValueFunc func() []string) []string
- func VoidFunctions(isTrue bool, trueValueFunctions []func(), falseValueFunctions []func())
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnyFunctions ¶ added in v0.5.6
func AnyFunctionsExecuteResults ¶ added in v0.5.6
func BoolByOrder ¶ added in v0.4.1
BoolByOrder returns the first boolean which is true
func BoolFunctionsByOrder ¶ added in v0.4.1
BoolFunctionsByOrder returns the first func which is true and don't execute others.
func BooleanTrueFunc ¶ added in v0.9.0
func BooleansPtr ¶ added in v0.3.8
func BytesTrueFunc ¶ added in v0.9.0
func DefOnNil ¶ added in v0.5.6
func DefOnNil( canBeEmpty interface{}, onNonNil interface{}, ) interface{}
func ErrorFunc ¶ added in v0.5.6
func ErrorFunc( isTrue bool, trueValueFunction func() error, falseValueFunction func() error, ) func() error
ErrorFunc returns func based on condition
func ErrorFunctionResult ¶ added in v0.5.6
func ErrorFunctionResult( isTrue bool, trueValueFunction func() error, falseValueFunction func() error, ) error
ErrorFunctionResult execute error function based on condition and returns final error
func ErrorFunctionsExecuteResults ¶ added in v0.5.6
func ErrorFunctionsExecuteResults( isTrue bool, trueValueFunctions []func() error, falseValueFunctions []func() error, ) error
ErrorFunctionsExecuteResults execute error functions based on condition and returns final error
func Func ¶ added in v0.3.8
func Func( isTrue bool, trueValueFunc, falseValueFunc func() interface{}, ) func() interface{}
func IntegersPtr ¶ added in v0.3.8
func IntegersPtrFunc ¶ added in v0.3.8
func InterfaceFunc ¶ added in v0.3.8
func InterfaceFunc( isTrue bool, trueValueFunc, falseValueFunc func() interface{}, ) interface{}
func Interfaces ¶ added in v0.0.8
func Interfaces( isTrue bool, trueValue, falseValue []interface{}, ) []interface{}
func InterfacesPtr ¶ added in v0.0.8
func InterfacesPtr( isTrue bool, trueValue, falseValue *[]interface{}, ) *[]interface{}
func NilBoolVal ¶ added in v0.5.6
func NilBoolValPtr ¶ added in v0.5.6
func NilByteVal ¶ added in v0.5.6
func NilByteValPtr ¶ added in v0.5.6
func NilCheck ¶ added in v0.5.6
func NilCheck( canBeEmpty interface{}, onNil interface{}, onNonNil interface{}, ) interface{}
func NilDefBool ¶ added in v0.5.6
func NilDefBoolPtr ¶ added in v0.5.6
func NilDefByte ¶ added in v0.5.6
func NilDefBytePtr ¶ added in v0.5.6
func NilDefIntPtr ¶ added in v0.5.6
func NilDefStrPtr ¶ added in v0.5.6
func NilDefValInt ¶ added in v0.5.6
func NilOrEmptyStr ¶ added in v0.5.6
func NilOrEmptyStrPtr ¶ added in v0.5.6
func SetterDefault ¶ added in v0.5.6
func StringDefault ¶ added in v0.9.8
func StringFunc ¶ added in v0.3.8
func StringTrueFunc ¶ added in v0.9.0
func StringsIndexVal ¶ added in v0.5.1
func StringsPtr ¶ added in v0.0.8
func StringsTrueFunc ¶ added in v0.9.0
func VoidFunctions ¶ added in v0.5.6
func VoidFunctions( isTrue bool, trueValueFunctions []func(), falseValueFunctions []func(), )
VoidFunctions execute void functions based on condition
Types ¶
This section is empty.
Source Files
¶
- AnyFunctions.go
- AnyFunctionsExecuteResults.go
- Bool.go
- BoolByOrder.go
- BoolFunc.go
- BoolFunctionsByOrder.go
- BooleanTrueFunc.go
- Booleans.go
- BooleansPtr.go
- Byte.go
- Bytes.go
- BytesPtr.go
- BytesTrueFunc.go
- DefOnNil.go
- ErrorFunc.go
- ErrorFunctionResult.go
- ErrorFunctionsExecuteResults.go
- Func.go
- Int.go
- Integers.go
- IntegersPtr.go
- IntegersPtrFunc.go
- Interface.go
- InterfaceFunc.go
- Interfaces.go
- InterfacesPtr.go
- NilCheck.go
- NilDefBool.go
- NilDefByte.go
- NilDefInt.go
- NilDefStr.go
- Setter.go
- SetterDefault.go
- String.go
- StringDefault.go
- StringFunc.go
- StringPtr.go
- StringTrueFunc.go
- Strings.go
- StringsIndexVal.go
- StringsPtr.go
- StringsTrueFunc.go
- VoidFunctions.go
- executeErrorFunctions.go
- executeVoidFunctions.go
- funcs.go
Click to show internal directories.
Click to hide internal directories.