Documentation
¶
Index ¶
- func IF[T any](expr bool, cthen, celse T) T
- func IFF[T any](expr bool, f func() T) T
- func IFTHEN[T any](expr bool, cthen T) T
- func StmtParams[T ~map[string]any](c Condition) (string, T)
- type Condition
- func (c Condition) AND(other Condition) Condition
- func (c Condition) AND_C(stmt string, nvs ...NamedValue) Condition
- func (c Condition) Empty() bool
- func (c Condition) Enclose() Condition
- func (c Condition) OR(other Condition) Condition
- func (c Condition) OR_C(stmt string, nvs ...NamedValue) Condition
- func (c Condition) StmtParams() (string, map[string]any)
- type NamedValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Condition ¶
type Condition struct {
// contains filtered or unexported fields
}
func C ¶
func C(stmt string, nvs ...NamedValue) Condition
func NonZero ¶ added in v0.7.0
func NonZero[T comparable](param T, f func(T) Condition) Condition
type NamedValue ¶
type NamedValue struct {
// contains filtered or unexported fields
}
func V ¶ added in v0.9.0
func V(name string, value any) NamedValue
func VMap ¶ added in v0.9.0
func VMap(m map[string]any) []NamedValue
func XV ¶ added in v0.9.0
func XV[T any](name string, value *T) NamedValue
Click to show internal directories.
Click to hide internal directories.