generic

package
v0.0.0-...-7f75908 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Coalesce

func Coalesce[T comparable](values ...T) (v T)

returns first non-zero/empty value

func If

func If[T any](condition bool, resultTrue, resultFalse T) T

ternary operator

func IsEmpty

func IsEmpty(value interface{}) bool

func Ptr

func Ptr[T any](v T) *T

returns pointer of a value

Types

This section is empty.

Jump to

Keyboard shortcuts

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