inline

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package inline provides the trivial functionality of inline if-else expressions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func If

func If[T any](condition bool, then T, otherwise T) T

If returns:

then      if condition == true
otherwise if condition != true

Types

This section is empty.

Jump to

Keyboard shortcuts

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