package
Version:
v0.0.35
Opens a new window with list of versions in this module.
Published: Mar 22, 2025
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 5
Opens a new window with list of known importers.
Documentation
¶
func Ternary[T any](isOk bool, ifOk, ifNot T) T
Like ternary operator in other programming language `value = (condition) ? ifTrue : ifFalse`
Source Files
¶
Click to show internal directories.
Click to hide internal directories.