Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Equal ¶
func Equal[T any](target T, values ...T) T
Return the first element in the parameter list that is equal to the given target.
func NotEmpty ¶
func NotEmpty[T EmptyConstraint](values ...T) T
Return the first NotNil element in the parameter list.
Types ¶
type EmptyConstraint ¶
type EmptyConstraint interface {
[]interface{} | ~string
}
Click to show internal directories.
Click to hide internal directories.