part

package
v0.0.0-...-637058c Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2021 License: Apache-2.0 Imports: 5 Imported by: 4

Documentation

Index

Constants

View Source
const Zero = Uint64(0)

Variables

View Source
var Infinity = InfinityType{}
View Source
var NegativeInfinity = NegativeInfinityType{}

Functions

This section is empty.

Types

type Any

type Any bool

func NewAny

func NewAny(s string) (Any, error)

func (Any) Compare

func (s Any) Compare(other Part) int

func (Any) IsAny

func (s Any) IsAny() bool

func (Any) IsEmpty

func (s Any) IsEmpty() bool

func (Any) IsNull

func (s Any) IsNull() bool

type Empty

type Empty struct {
	// contains filtered or unexported fields
}

func NewEmpty

func NewEmpty(any bool) Empty

func (Empty) Compare

func (s Empty) Compare(other Part) int

func (Empty) IsAny

func (s Empty) IsAny() bool

func (Empty) IsEmpty

func (s Empty) IsEmpty() bool

func (Empty) IsNull

func (s Empty) IsNull() bool

type InfinityType

type InfinityType struct{}

func (InfinityType) Compare

func (InfinityType) Compare(other Part) int

func (InfinityType) IsAny

func (InfinityType) IsAny() bool

func (InfinityType) IsEmpty

func (InfinityType) IsEmpty() bool

func (InfinityType) IsNull

func (InfinityType) IsNull() bool

type NegativeInfinityType

type NegativeInfinityType struct{}

func (NegativeInfinityType) Compare

func (NegativeInfinityType) Compare(other Part) int

func (NegativeInfinityType) IsAny

func (NegativeInfinityType) IsAny() bool

func (NegativeInfinityType) IsEmpty

func (NegativeInfinityType) IsEmpty() bool

func (NegativeInfinityType) IsNull

func (NegativeInfinityType) IsNull() bool

type Part

type Part interface {
	Compare(Part) int
	IsNull() bool
	IsAny() bool
	IsEmpty() bool
}

func NewPart

func NewPart(s string) Part

type Parts

type Parts []Part

func NewParts

func NewParts(s string) Parts

func Uint64SliceToParts

func Uint64SliceToParts(uint64Parts []Uint64) Parts

func (Parts) Compare

func (parts Parts) Compare(other Part) int

func (Parts) IsAny

func (parts Parts) IsAny() bool

func (Parts) IsEmpty

func (parts Parts) IsEmpty() bool

func (Parts) IsNull

func (parts Parts) IsNull() bool

func (Parts) Normalize

func (parts Parts) Normalize() Parts

func (Parts) Padding

func (parts Parts) Padding(size int, padding Part) Parts

func (Parts) String

func (parts Parts) String() string

func (Parts) Zip

func (parts Parts) Zip(other Parts) func() *ZipTuple

type PreString

type PreString string

PreString is less than the number e.g. a < 1

func NewPreString

func NewPreString(s string) PreString

func (PreString) Compare

func (s PreString) Compare(other Part) int

func (PreString) IsAny

func (s PreString) IsAny() bool

func (PreString) IsEmpty

func (s PreString) IsEmpty() bool

func (PreString) IsNull

func (s PreString) IsNull() bool

type String

type String string

func NewString

func NewString(s string) String

func (String) Compare

func (s String) Compare(other Part) int

func (String) IsAny

func (s String) IsAny() bool

func (String) IsEmpty

func (s String) IsEmpty() bool

func (String) IsNull

func (s String) IsNull() bool

type Uint64

type Uint64 uint64

func NewUint64

func NewUint64(s string) (Uint64, error)

func (Uint64) Compare

func (s Uint64) Compare(other Part) int

func (Uint64) IsAny

func (s Uint64) IsAny() bool

func (Uint64) IsEmpty

func (s Uint64) IsEmpty() bool

func (Uint64) IsNull

func (s Uint64) IsNull() bool

type ZipTuple

type ZipTuple struct {
	Left  Part
	Right Part
}

Jump to

Keyboard shortcuts

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