# Functions
AtExit registers the function fn to be called on program termination.
CompareVersions compares two version strings.
Constrain limits the given integer with the upper and lower bounds.
Constrain32 limits the given 32-bit integer with the upper and lower bounds.
DurWithin limits the given time.Duration with the upper and lower bounds.
IsTty returns true if the file is a terminal.
IsWindows returns true on Windows.
KillCommand kills the process for the given command.
Max returns the largest integer.
Max16 returns the largest integer.
Max32 returns the largest 32-bit integer.
Min returns the smallest integer.
Min32 returns the smallest 32-bit integer.
NewAtomicBool returns a new AtomicBool.
NewEventBox returns a new EventBox.
Once returns a function that returns the specified boolean value only once.
Read executes syscall.Read on file descriptor.
RepeatToFill repeats the given string to fill the given width.
RunAtExitFuncs runs any functions registered with AtExit().
RunesWidth returns runes width.
RunOnce runs the given function only once.
SetNonblock executes syscall.SetNonblock on file descriptor.
StringWidth returns string width where each CR/LF character takes 1 column.
ToChars converts byte array into rune array.
ToKebabCase converts the given CamelCase string to kebab-case.
Truncate returns the truncated runes and its width.
# Structs
AtomicBool is a boxed-class that provides synchronized access to the underlying boolean value.
EventBox is used for coordinating events.