Help us shape the future of Go! Take the 2026 Go Developer Survey

inlineif

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: MIT Imports: 0 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func If

func If[V any](cond bool, val V) *V

func IfElse

func IfElse[V any](cond bool, yes, nope V) V

func IfElseFn

func IfElseFn[V any](cond bool, yes func() V, nope func() V) V

func IfElsePtr

func IfElsePtr[V any](cond bool, yes, nope V) *V

Types

This section is empty.

Jump to

Keyboard shortcuts

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