boolutil

package
v0.0.0-...-d931726 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package boolutil provides simple utility functions around booleans.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsInt

func AsInt(v bool) int

AsInt returns 1 if v is true and 0 if v is false.

func FromInt

func FromInt(v int) bool

FromInt returns true if v > 0, otherwise returns false.

Types

This section is empty.

Jump to

Keyboard shortcuts

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