types

package
v1.0.76 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Float32ToFloat64 added in v1.0.74

func Float32ToFloat64(value float32) float64

func Float64ToFloat32 added in v1.0.74

func Float64ToFloat32(value float64) float32

func StringComparer

func StringComparer(a, b string) bool

Types

type ArithmeticProgression added in v1.0.65

type ArithmeticProgression[T Number] struct {
	// contains filtered or unexported fields
}

func NewArithmeticProgression added in v1.0.65

func NewArithmeticProgression[T Number](start, delta T) *ArithmeticProgression[T]

func (*ArithmeticProgression[T]) Current added in v1.0.65

func (ap *ArithmeticProgression[T]) Current() T

func (*ArithmeticProgression[T]) Next added in v1.0.65

func (ap *ArithmeticProgression[T]) Next() T

type CommaSeparatedValueRecord added in v1.0.67

type CommaSeparatedValueRecord string

func (CommaSeparatedValueRecord) Native added in v1.0.67

func (s CommaSeparatedValueRecord) Native() string

func (CommaSeparatedValueRecord) ValidValues added in v1.0.67

func (s CommaSeparatedValueRecord) ValidValues() Strings

func (CommaSeparatedValueRecord) Values added in v1.0.67

type CsvRecord added in v1.0.67

type CsvRecord = CommaSeparatedValueRecord

type Float32Vector added in v1.0.74

type Float32Vector []float32

func (Float32Vector) Dim added in v1.0.74

func (vector Float32Vector) Dim() int

func (Float32Vector) Empty added in v1.0.74

func (vector Float32Vector) Empty() bool

func (Float32Vector) Float32 added in v1.0.74

func (vector Float32Vector) Float32() Float32Vector

func (Float32Vector) Float64 added in v1.0.74

func (vector Float32Vector) Float64() Float64Vector

func (Float32Vector) IsNil added in v1.0.74

func (vector Float32Vector) IsNil() bool

func (Float32Vector) Len added in v1.0.74

func (vector Float32Vector) Len() int

func (Float32Vector) Native added in v1.0.74

func (vector Float32Vector) Native() []float32

type Float32Vectors added in v1.0.74

type Float32Vectors []Float32Vector

func (Float32Vectors) FirstOneOrNil added in v1.0.74

func (vectors Float32Vectors) FirstOneOrNil() Float32Vector

func (Float32Vectors) Float32 added in v1.0.74

func (vectors Float32Vectors) Float32() Float32Vectors

func (Float32Vectors) Float64 added in v1.0.74

func (vectors Float32Vectors) Float64() Float64Vectors

func (Float32Vectors) Len added in v1.0.74

func (vectors Float32Vectors) Len() int

func (Float32Vectors) Native added in v1.0.75

func (vectors Float32Vectors) Native() [][]float32

func (Float32Vectors) PurgeEmpty added in v1.0.74

func (vectors Float32Vectors) PurgeEmpty() Float32Vectors

func (Float32Vectors) PurgeNil added in v1.0.74

func (vectors Float32Vectors) PurgeNil() Float32Vectors

type Float64Vector added in v1.0.74

type Float64Vector []float64

func (Float64Vector) Dim added in v1.0.74

func (vector Float64Vector) Dim() int

func (Float64Vector) Empty added in v1.0.74

func (vector Float64Vector) Empty() bool

func (Float64Vector) Float32 added in v1.0.74

func (vector Float64Vector) Float32() Float32Vector

func (Float64Vector) Float64 added in v1.0.74

func (vector Float64Vector) Float64() Float64Vector

func (Float64Vector) IsNil added in v1.0.74

func (vector Float64Vector) IsNil() bool

func (Float64Vector) Len added in v1.0.74

func (vector Float64Vector) Len() int

func (Float64Vector) Native added in v1.0.74

func (vector Float64Vector) Native() []float64

type Float64Vectors added in v1.0.74

type Float64Vectors []Float64Vector

func (Float64Vectors) FirstOneOrNil added in v1.0.74

func (vectors Float64Vectors) FirstOneOrNil() Float64Vector

func (Float64Vectors) Float32 added in v1.0.74

func (vectors Float64Vectors) Float32() Float32Vectors

func (Float64Vectors) Float64 added in v1.0.74

func (vectors Float64Vectors) Float64() Float64Vectors

func (Float64Vectors) Len added in v1.0.74

func (vectors Float64Vectors) Len() int

func (Float64Vectors) Native added in v1.0.75

func (vectors Float64Vectors) Native() [][]float64

func (Float64Vectors) PurgeEmpty added in v1.0.74

func (vectors Float64Vectors) PurgeEmpty() Float64Vectors

func (Float64Vectors) PurgeNil added in v1.0.74

func (vectors Float64Vectors) PurgeNil() Float64Vectors

type FloatVector added in v1.0.74

type FloatVector = Float32Vector

type FloatVectors added in v1.0.74

type FloatVectors = Float64Vectors

type Number added in v1.0.65

type Number interface {
	constraints.Integer | constraints.Float
}

type SequenceNumber added in v1.0.65

type SequenceNumber = ArithmeticProgression[int]

func NewSequenceNumber added in v1.0.65

func NewSequenceNumber() *SequenceNumber

func NewSequenceNumberPro added in v1.0.65

func NewSequenceNumberPro(start, delta int) *SequenceNumber

type StringSet

type StringSet = stl.Set[string]

type StringSlice

type StringSlice = []string

type Strings

type Strings []string

func NewStrings

func NewStrings(strs ...string) Strings

func NewStringsFromSet

func NewStringsFromSet(set StringSet) Strings

func NewStringsFromStringSlice

func NewStringsFromStringSlice(strs StringSlice) Strings

func SplitToStrings added in v1.0.49

func SplitToStrings(s, sep string) Strings

func (Strings) AllMatch

func (strs Strings) AllMatch(test func(string) bool) bool

func (Strings) AnyMatch

func (strs Strings) AnyMatch(test func(string) bool) bool

func (Strings) Append

func (strs Strings) Append(more ...string) Strings

func (Strings) Concat

func (strs Strings) Concat(others ...Strings) Strings

func (Strings) Contain

func (strs Strings) Contain(str string) bool

func (Strings) Count added in v1.0.60

func (strs Strings) Count() stl.Counter[string]

func (Strings) Dup

func (strs Strings) Dup() Strings

func (Strings) Empty

func (strs Strings) Empty() bool

func (Strings) EnsureNotNil

func (strs Strings) EnsureNotNil() Strings

func (Strings) Equal

func (strs Strings) Equal(other Strings) bool

func (Strings) Filter

func (strs Strings) Filter(filter func(string) bool) Strings

func (Strings) FirstOneOrZero added in v1.0.49

func (strs Strings) FirstOneOrZero() string

func (Strings) ForEach

func (strs Strings) ForEach(handler func(string))

func (Strings) ForEachPro

func (strs Strings) ForEachPro(handler func(int, string, Strings))

func (Strings) IndexOf

func (strs Strings) IndexOf(str string) int

func (Strings) InplaceSort

func (strs Strings) InplaceSort() Strings

func (Strings) ItemsUnique added in v1.0.53

func (strs Strings) ItemsUnique() bool

func (Strings) Join

func (strs Strings) Join(sep string) string

func (Strings) JoinByComma

func (strs Strings) JoinByComma() string

func (Strings) JoinByDot added in v1.0.61

func (strs Strings) JoinByDot() string

func (Strings) JoinByEmptyLine added in v1.0.76

func (strs Strings) JoinByEmptyLine() string

func (Strings) JoinByMarkdownSplitLine added in v1.0.76

func (strs Strings) JoinByMarkdownSplitLine() string

func (Strings) JoinByNewLine added in v1.0.76

func (strs Strings) JoinByNewLine() string

func (Strings) Len

func (strs Strings) Len() int

func (Strings) Map

func (strs Strings) Map(mapper func(string) string) Strings

func (Strings) MapWithSprintf added in v1.0.49

func (strs Strings) MapWithSprintf(format string) Strings

func (Strings) Native

func (strs Strings) Native() StringSlice

func (Strings) Purge

func (strs Strings) Purge(filter func(string) bool) Strings

func (Strings) PurgeZero

func (strs Strings) PurgeZero() Strings

func (Strings) ReverseDup added in v1.0.61

func (strs Strings) ReverseDup() Strings

func (Strings) ReverseInplace added in v1.0.61

func (strs Strings) ReverseInplace() Strings

func (Strings) Sort

func (strs Strings) Sort() Strings

func (Strings) Split

func (strs Strings) Split(seps ...string) Strings

go example

func (Strings) ToSet

func (strs Strings) ToSet() StringSet

func (Strings) TrimSpace

func (strs Strings) TrimSpace() Strings

func (Strings) Unique added in v1.0.62

func (strs Strings) Unique() Strings

func (Strings) UniqueByInplaceSort added in v1.0.53

func (strs Strings) UniqueByInplaceSort() Strings

func (Strings) UniqueBySet added in v1.0.53

func (strs Strings) UniqueBySet() Strings

func (Strings) UniqueBySort added in v1.0.53

func (strs Strings) UniqueBySort() Strings

func (Strings) UniqueSorteds

func (strs Strings) UniqueSorteds() Strings

Jump to

Keyboard shortcuts

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