zcmp

package
v0.0.0-alpha.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 7, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func False

func False[T comparable](b bool, yes, no T) T

False returns the yes when the b is false. Otherwise returns the value of no.

func OrMap

func OrMap[M map[K]V, K comparable, V any](vals ...M) M

OrMap returns the first of its arguments that is not empty. If no argument has element, it returns the nil map.

func OrSlice

func OrSlice[S []V, V any](vals ...S) S

OrSlice returns the first of its arguments that is not empty. If no argument has element, it returns a nil slice.

func True

func True[T comparable](b bool, yes, no T) T

True returns the yes when the b is true. Otherwise returns the value of no.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL