package
Version:
v4.1.0
Opens a new window with list of versions in this module.
Published: Feb 26, 2026
License: AGPL-3.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package primitive contains some primitives and helper functions.
Collect collects all Ks from iterator it, returning any encountered error.
FlagRender returns the representation of f using characters in flg.
func IfTrue[T any](cond bool, t T, f T) T
IfTrue returns second argument if the condition is true, otherwise, returns the third one.
Same as C's ternary condition operator:
cond ? t : f;
Counter is the thread safe Counter.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.