strtype

package
v0.0.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Variant

type Variant string

func GetSet

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

func GetSetVariant

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

func (Variant) Add

func (v Variant) Add(n string) Variant

Add v + n

func (Variant) Is

func (v Variant) Is(n Variant) bool

func (Variant) IsCompareResult

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

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

func (Variant) IsEqual

func (v Variant) IsEqual(n string) bool

func (Variant) IsGreater

func (v Variant) IsGreater(n string) bool

IsGreater v.Value() > n

func (Variant) IsGreaterEqual

func (v Variant) IsGreaterEqual(n string) bool

IsGreaterEqual v.Value() >= n

func (Variant) IsLess

func (v Variant) IsLess(n string) bool

IsLess v.Value() < n

func (Variant) IsLessEqual

func (v Variant) IsLessEqual(n string) bool

IsLessEqual v.Value() <= n

func (Variant) StringValue

func (v Variant) StringValue() string

func (Variant) Value

func (v Variant) Value() string

Jump to

Keyboard shortcuts

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