inttype

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Variant

type Variant int
const (
	Uninitialized Variant = iota
)

func GetSet

func GetSet(
	isCondition bool,
	trueValue Variant,
	falseValue Variant,
) Variant

func GetSetVariant

func GetSetVariant(
	isCondition bool,
	trueValue int,
	falseValue int,
) Variant

func (Variant) Add

func (v Variant) Add(n int) Variant

Add v + n

func (Variant) Is

func (v Variant) Is(n Variant) bool

func (Variant) IsCompareResult

func (v Variant) IsCompareResult(n int, compare corecomparator.Compare) bool

IsCompareResult Here left is v, and right is `n`

func (Variant) IsEqual

func (v Variant) IsEqual(n int) bool

func (Variant) IsGreater

func (v Variant) IsGreater(n int) bool

IsGreater v.Value() > n

func (Variant) IsGreaterEqual

func (v Variant) IsGreaterEqual(n int) bool

IsGreaterEqual v.Value() >= n

func (Variant) IsInitializedLogically

func (v Variant) IsInitializedLogically() bool

func (Variant) IsLess

func (v Variant) IsLess(n int) bool

IsLess v.Value() < n

func (Variant) IsLessEqual

func (v Variant) IsLessEqual(n int) bool

IsLessEqual v.Value() <= n

func (Variant) IsUninitialized

func (v Variant) IsUninitialized() bool

func (Variant) StringValue

func (v Variant) StringValue() string

func (Variant) Subtract

func (v Variant) Subtract(n int) Variant

Subtract v - n

func (Variant) Value

func (v Variant) Value() int

Jump to

Keyboard shortcuts

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