inttype

package
v0.8.8 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2021 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 added in v0.0.9

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

func GetSetVariant added in v0.0.9

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 added in v0.4.1

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) 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 added in v0.3.8

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