strtype

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2021 License: MIT Imports: 2 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 string

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

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