mycond

package
v1.8.7 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: BSD-3-Clause Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func And

func And[T, U any](a T, b U) bool

And returns true if both a and b are truthy.

func Bool

func Bool(value any) bool

func DeepEQ

func DeepEQ(a any, b any) bool

func If

func If[T any](f BFun, trueVal, falseVal T) T

func Or

func Or[T, U any](a T, b U) bool

Or returns false if neither a nor b is truthy.

Types

type BFun

type BFun func() bool

Jump to

Keyboard shortcuts

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