util

package
v2.3.6 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2021 License: Apache-2.0, MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert

func Assert(b bool)

func AssertMsg

func AssertMsg(b bool, format string, a ...interface{})

Indicates a condition that should never happen. If encountered, execution will halt and the resulting state is undefined.

func AssertNoError

func AssertNoError(e error)

func BitFieldContainsAll

func BitFieldContainsAll(a, b BitField) (bool, error)

Checks whether bitfield `a` contains all bits set in bitfield `b`.

func BitFieldContainsAny

func BitFieldContainsAny(a, b BitField) (bool, error)

Checks whether bitfield `a` contains any bit that is set in bitfield `b`.

Types

type BitField

type BitField = bitfield.BitField

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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