Documentation
¶
Overview ¶
Package lang container general purpose programming helpers
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bind ¶ added in v0.2.0
Bind converts a single-parameter function to a no-parameter one by binding the given value to the parameter. Useful together with fi.NoErrorF or defer. Bind implements the missing Partial0 from samber/lo.
func IfEmpty ¶
func IfEmpty[T comparable](value, alt T) T
IfEmpty returns alt if value is empty (zero-value), and value itself, if not empty Simplified variant of samber/lo.CoalesceOrEmpty
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.