Documentation
¶
Overview ¶
Package lof provides utility functions for functional programming.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IfNonEmpty ¶ added in v0.30.0
IfNonEmpty returns s and whether s is non-empty. Converts "empty string = absent" returns to Go's comma-ok idiom.
result := cmp.Diff(want, got)
if diff, ok := lof.IfNonEmpty(result); ok {
t.Errorf("mismatch:\n%s", diff)
}
func IsNonBlank ¶ added in v0.30.0
IsNonBlank returns true if s contains non-whitespace characters.
func IsNonEmpty ¶ added in v0.30.0
IsNonEmpty returns true if s is non-empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.