builtin

package
v0.12.4 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Must

func Must[T any](v T, err error) T

func NonNil

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

func NonNilMap

func NonNilMap[T map[K]V, K comparable, V any](v T) T

func NonNilOrDefault

func NonNilOrDefault[T any](v *T, def T) T

func Or

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

func Ptr

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

func RequireNonNil

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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