boolutil

package
v2.17.1 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2026 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package boolutil interprets the loosely-typed booleans that reach Core from user input: ZapScript arguments and traits, configuration values, and API payloads. It sits below pkg/helpers so packages that pkg/helpers itself depends on can share one definition of what counts as true.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsFalsey

func IsFalsey(s string) bool

IsFalsey reports whether s is a negative written by a user.

This is not the negation of IsTruthy: a value that is neither affirmative nor negative, such as "maybe", is neither truthy nor falsey, so callers can tell "the user said no" apart from "the user said something unreadable".

func IsTruthy

func IsTruthy(s string) bool

IsTruthy reports whether s is an affirmative written by a user.

Types

This section is empty.

Jump to

Keyboard shortcuts

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