boolz

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: MIT Imports: 0 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ptr

func Ptr(v bool) *bool

Ptr returns a pointer to the value.

func PtrDefToNil

func PtrDefToNil(v bool, def bool) *bool

PtrDefToNil returns a pointer to the value, or nil if "def".

func PtrZeroToNil

func PtrZeroToNil(v bool) *bool

PtrZeroToNil returns a pointer to the value, or nil if false.

func SafeIndex

func SafeIndex(s []bool, i int) bool

SafeIndex returns "s[i]" if possible, and false otherwise.

func SafeIndexDef

func SafeIndexDef(s []bool, i int, def bool) bool

SafeIndexDef returns "s[i]" if possible, and "def" otherwise.

func SafeIndexPtr

func SafeIndexPtr(s []bool, i int) *bool

SafeIndexPtr returns "s[i]" if possible, and nil otherwise.

func Val

func Val(v *bool) bool

Val returns the pointer value, defaulting to false if nil.

func ValDef

func ValDef(v *bool, def bool) bool

ValDef returns the pointer value, defaulting to "def" if nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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