coalesce

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2025 License: MIT Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Int

func Int(s ...int) int

Int returns the first non-zero value, or zero.

func NotNil

func NotNil[T any](args ...*T) *T

NotNil returns the first non-nil pointer, or nil.

func String

func String(s ...string) string

String returns the first non-empty string, or "".

Types

This section is empty.

Jump to

Keyboard shortcuts

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