flags

package
v0.18.5 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add[T Integer](f T, bits ...T) T

Add allows you to add multiple bits together, producing a new bit

func Has

func Has[T Integer](f T, bits ...T) bool

Has will ensure that the bit includes all the bits entered

func Missing

func Missing[T Integer](f T, bits ...T) bool

Missing will check whether the bit is missing any one of the bits

func Remove

func Remove[T Integer](f T, bits ...T) T

Remove allows you to subtract multiple bits from the first, producing a new bit

Types

type Integer added in v0.17.0

type Integer interface {
	~int | ~int8 | ~int16 | ~int32 | ~int64 | ~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr
}

Integer is a constraint that permits any integer type.

Jump to

Keyboard shortcuts

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