package
Version:
v0.0.7
Opens a new window with list of versions in this module.
Published: May 5, 2023
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package use provides conditional expression builders
type UseIf[T any] struct {
Tru T
Condition bool
}
UseIf is if...else expression builder
If builds useIf(tr, condition).Else(fals) expression builder
func (u UseIf[T]) Else(fals T) T
Else returns the tru or the fals according to the condition
Source Files
¶
Click to show internal directories.
Click to hide internal directories.