Documentation ¶
Index ¶
- type Any
- func (x *Any) Append(values ...any)
- func (x Any) At(index int) any
- func (x Any) Contains(value any) bool
- func (x Any) ContainsAll(values ...any) bool
- func (x Any) ContainsAny(values ...any) bool
- func (x Any) Equal(value []any) bool
- func (x Any) First() any
- func (x Any) FirstN(n int) Any
- func (x Any) GetAny(key string) any
- func (x Any) GetAnyOK(key string) (any, bool)
- func (x Any) GetBool(key string) bool
- func (x Any) GetBoolOK(key string) (bool, bool)
- func (x Any) GetFloat(key string) float64
- func (x Any) GetFloatOK(key string) (float64, bool)
- func (x Any) GetInt(key string) int
- func (x Any) GetInt64(key string) int64
- func (x Any) GetInt64OK(key string) (int64, bool)
- func (x Any) GetIntOK(key string) (int, bool)
- func (x *Any) GetPointer(key string) (any, bool)
- func (x Any) GetString(key string) string
- func (x Any) GetStringOK(key string) (string, bool)
- func (x Any) IsEmpty() bool
- func (x Any) IsLength(length int) bool
- func (x Any) Last() any
- func (x Any) Length() int
- func (x Any) NotEmpty() bool
- func (x *Any) Remove(key string) bool
- func (x Any) Reverse() Any
- func (x *Any) SetAny(key string, value any) bool
- func (x *Any) SetBool(key string, value bool) bool
- func (x *Any) SetFloat(key string, value float64) bool
- func (x *Any) SetInt(key string, value int) bool
- func (x *Any) SetInt64(key string, value int64) bool
- func (x *Any) SetString(key string, value string) bool
- func (x *Any) SetValue(value any) error
- func (x Any) Shuffle() Any
- type Bool
- func (x *Bool) Append(values ...bool)
- func (x Bool) At(index int) bool
- func (x Bool) Contains(value bool) bool
- func (x Bool) ContainsAll(values ...bool) bool
- func (x Bool) ContainsAny(values ...bool) bool
- func (x Bool) Equal(value []bool) bool
- func (x Bool) First() bool
- func (x Bool) FirstN(n int) Bool
- func (x Bool) GetBool(key string) bool
- func (x Bool) GetBoolOK(key string) (bool, bool)
- func (x Bool) IsEmpty() bool
- func (x Bool) IsLength(length int) bool
- func (x Bool) Last() bool
- func (x Bool) Length() int
- func (x Bool) NotEmpty() bool
- func (s *Bool) Remove(key string) bool
- func (x Bool) Reverse() Bool
- func (s *Bool) SetBool(key string, value bool) bool
- func (s *Bool) SetValue(value any) error
- func (x Bool) Shuffle() Bool
- type Float
- func (x *Float) Append(values ...float64)
- func (x Float) At(index int) float64
- func (x Float) Contains(value float64) bool
- func (x Float) ContainsAll(values ...float64) bool
- func (x Float) ContainsAny(values ...float64) bool
- func (x Float) Equal(value []float64) bool
- func (x Float) First() float64
- func (x Float) FirstN(n int) Float
- func (x Float) GetFloat(key string) float64
- func (x Float) GetFloatOK(key string) (float64, bool)
- func (x Float) IsEmpty() bool
- func (x Float) IsLength(length int) bool
- func (x Float) Last() float64
- func (x Float) Length() int
- func (x Float) NotEmpty() bool
- func (s *Float) Remove(key string) bool
- func (x Float) Reverse() Float
- func (s *Float) SetFloat(key string, value float64) bool
- func (s *Float) SetValue(value any) error
- func (x Float) Shuffle() Float
- type Int
- func (x *Int) Append(values ...int)
- func (x Int) At(index int) int
- func (x Int) Contains(value int) bool
- func (x Int) ContainsAll(values ...int) bool
- func (x Int) ContainsAny(values ...int) bool
- func (x Int) Equal(value []int) bool
- func (x Int) First() int
- func (x Int) FirstN(n int) Int
- func (x Int) GetInt(key string) int
- func (x Int) GetIntOK(key string) (int, bool)
- func (x Int) IsEmpty() bool
- func (x Int) IsLength(length int) bool
- func (x Int) Last() int
- func (x Int) Length() int
- func (x Int) NotEmpty() bool
- func (s *Int) Remove(key string) bool
- func (x Int) Reverse() Int
- func (s *Int) SetInt(key string, value int) bool
- func (s *Int) SetValue(value any) error
- func (x Int) Shuffle() Int
- type Int64
- func (x *Int64) Append(values ...int64)
- func (x Int64) At(index int) int64
- func (x Int64) Contains(value int64) bool
- func (x Int64) ContainsAll(values ...int64) bool
- func (x Int64) ContainsAny(values ...int64) bool
- func (x Int64) Equal(value []int64) bool
- func (x Int64) First() int64
- func (x Int64) FirstN(n int) Int64
- func (x Int64) GetInt64(key string) int64
- func (x Int64) GetInt64OK(key string) (int64, bool)
- func (x Int64) IsEmpty() bool
- func (x Int64) IsLength(length int) bool
- func (x Int64) Last() int64
- func (x Int64) Length() int
- func (x Int64) NotEmpty() bool
- func (s *Int64) Remove(key string) bool
- func (x Int64) Reverse() Int64
- func (s *Int64) SetInt64(key string, value int64) bool
- func (s *Int64) SetValue(value any) error
- func (x Int64) Shuffle() Int64
- type Object
- func (x *Object[T]) Append(values ...T)
- func (x Object[T]) At(index int) T
- func (x Object[T]) First() T
- func (x Object[T]) FirstN(n int) Object[T]
- func (x *Object[T]) GetPointer(name string) (any, bool)
- func (x Object[T]) IsEmpty() bool
- func (x Object[T]) IsLength(length int) bool
- func (x Object[T]) Last() T
- func (x Object[T]) Length() int
- func (x Object[T]) NotEmpty() bool
- func (x *Object[T]) Remove(key string) bool
- func (x Object[T]) Reverse() Object[T]
- func (x Object[T]) Shuffle() Object[T]
- type String
- func (x *String) Append(values ...string)
- func (x String) At(index int) string
- func (x String) Contains(value string) bool
- func (x String) ContainsAll(values ...string) bool
- func (x String) ContainsAny(values ...string) bool
- func (x String) Equal(value []string) bool
- func (x String) First() string
- func (x String) FirstN(n int) String
- func (x String) GetString(key string) string
- func (x String) GetStringOK(key string) (string, bool)
- func (x String) IsEmpty() bool
- func (x String) IsLength(length int) bool
- func (x String) Join(delimiter string) string
- func (x String) Last() string
- func (x String) Length() int
- func (x String) NotEmpty() bool
- func (s *String) Remove(key string) bool
- func (x String) Reverse() String
- func (s *String) SetString(key string, value string) bool
- func (s *String) SetValue(value any) error
- func (x String) Shuffle() String
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Any ¶
type Any []any
func (Any) At ¶ added in v0.21.5
At returns a bound-safe element from the slice. If the index is out of bounds, then `At` returns the zero value for the slice type
func (Any) Contains ¶ added in v0.21.4
Contains returns TRUE if the slice contains the specified value
func (Any) ContainsAll ¶ added in v0.21.4
ContainsAll returns TRUE if the slice contains all of the specified values
func (Any) ContainsAny ¶ added in v0.21.4
ContainsAny returns TRUE if the slice contains any of the specified values
func (Any) Equal ¶ added in v0.21.4
Equal returns TRUE if the slice contains exactly the same elements as the specified value
func (Any) First ¶ added in v0.10.0
First returns the first element in the slice, or nil if the slice is empty
func (Any) FirstN ¶ added in v0.21.4
FirstN returns the first "n" elements in the slice, or all elements if "n" is greater than the length of the slice
func (Any) IsLength ¶ added in v0.10.0
IsLength returns TRUE if the slice contains exactly "length" elements
func (Any) Last ¶ added in v0.10.0
Last returns the last element in the slice, or nil if the slice is empty
func (Any) NotEmpty ¶ added in v0.16.3
NotEmpty returns TRUE if the slice contains at least one element
type Bool ¶
type Bool []bool
func (Bool) At ¶ added in v0.21.5
At returns a bound-safe element from the slice. If the index is out of bounds, then `At` returns the zero value for the slice type
func (Bool) Contains ¶ added in v0.11.2
Contains returns TRUE if the slice contains the specified value
func (Bool) ContainsAll ¶ added in v0.14.0
ContainsAll returns TRUE if the slice contains all of the specified values
func (Bool) ContainsAny ¶ added in v0.14.0
ContainsAny returns TRUE if the slice contains any of the specified values
func (Bool) Equal ¶ added in v0.11.2
Equal returns TRUE if the slice contains exactly the same elements as the specified value
func (Bool) First ¶ added in v0.10.0
First returns the first element in the slice, or nil if the slice is empty
func (Bool) FirstN ¶ added in v0.21.4
FirstN returns the first "n" elements in the slice, or all elements if "n" is greater than the length of the slice
func (Bool) IsLength ¶ added in v0.10.0
IsLength returns TRUE if the slice contains exactly "length" elements
func (Bool) Last ¶ added in v0.10.0
Last returns the last element in the slice, or nil if the slice is empty
func (Bool) NotEmpty ¶ added in v0.16.3
NotEmpty returns TRUE if the slice contains at least one element
type Float ¶
type Float []float64
func (Float) At ¶ added in v0.21.5
At returns a bound-safe element from the slice. If the index is out of bounds, then `At` returns the zero value for the slice type
func (Float) Contains ¶ added in v0.11.2
Contains returns TRUE if the slice contains the specified value
func (Float) ContainsAll ¶ added in v0.14.0
ContainsAll returns TRUE if the slice contains all of the specified values
func (Float) ContainsAny ¶ added in v0.14.0
ContainsAny returns TRUE if the slice contains any of the specified values
func (Float) Equal ¶ added in v0.11.2
Equal returns TRUE if the slice contains exactly the same elements as the specified value
func (Float) First ¶ added in v0.10.0
First returns the first element in the slice, or nil if the slice is empty
func (Float) FirstN ¶ added in v0.21.4
FirstN returns the first "n" elements in the slice, or all elements if "n" is greater than the length of the slice
func (Float) IsLength ¶ added in v0.10.0
IsLength returns TRUE if the slice contains exactly "length" elements
func (Float) Last ¶ added in v0.10.0
Last returns the last element in the slice, or nil if the slice is empty
func (Float) NotEmpty ¶ added in v0.16.3
NotEmpty returns TRUE if the slice contains at least one element
type Int ¶
type Int []int
func (Int) At ¶ added in v0.21.5
At returns a bound-safe element from the slice. If the index is out of bounds, then `At` returns the zero value for the slice type
func (Int) Contains ¶ added in v0.11.2
Contains returns TRUE if the slice contains the specified value
func (Int) ContainsAll ¶ added in v0.14.0
ContainsAll returns TRUE if the slice contains all of the specified values
func (Int) ContainsAny ¶ added in v0.14.0
ContainsAny returns TRUE if the slice contains any of the specified values
func (Int) Equal ¶ added in v0.11.2
Equal returns TRUE if the slice contains exactly the same elements as the specified value
func (Int) First ¶ added in v0.10.0
First returns the first element in the slice, or nil if the slice is empty
func (Int) FirstN ¶ added in v0.21.4
FirstN returns the first "n" elements in the slice, or all elements if "n" is greater than the length of the slice
func (Int) IsLength ¶ added in v0.10.0
IsLength returns TRUE if the slice contains exactly "length" elements
func (Int) Last ¶ added in v0.10.0
Last returns the last element in the slice, or nil if the slice is empty
func (Int) NotEmpty ¶ added in v0.16.3
NotEmpty returns TRUE if the slice contains at least one element
type Int64 ¶
type Int64 []int64
func (Int64) At ¶ added in v0.21.5
At returns a bound-safe element from the slice. If the index is out of bounds, then `At` returns the zero value for the slice type
func (Int64) Contains ¶ added in v0.11.2
Copy returns a new slice with all elements copied from the original slice
func (Int64) ContainsAll ¶ added in v0.14.0
ContainsAll returns TRUE if the slice contains all of the specified values
func (Int64) ContainsAny ¶ added in v0.14.0
ContainsAny returns TRUE if the slice contains any of the specified values
func (Int64) Equal ¶ added in v0.11.2
Equal returns TRUE if the slice contains exactly the same elements as the specified slice
func (Int64) First ¶ added in v0.10.0
First returns the first element in the slice, or nil if the slice is empty
func (Int64) FirstN ¶ added in v0.21.4
FirstN returns the first "n" elements in the slice, or all elements if "n" is greater than the length of the slice
func (Int64) IsLength ¶ added in v0.10.0
IsLength returns TRUE if the slice contains exactly "length" elements
func (Int64) Last ¶ added in v0.10.0
Last returns the last element in the slice, or nil if the slice is empty
func (Int64) NotEmpty ¶ added in v0.16.3
NotEmpty returns TRUE if the slice contains at least one element
type Object ¶ added in v0.10.0
type Object[T any] []T
func (*Object[T]) Append ¶ added in v0.12.0
func (x *Object[T]) Append(values ...T)
Append adds one or more elements to the end of the slice
func (Object[T]) At ¶ added in v0.21.5
At returns a bound-safe element from the slice. If the index is out of bounds, then `At` returns the zero value for the slice type
func (Object[T]) First ¶ added in v0.10.0
func (x Object[T]) First() T
First returns the first element in the slice, or nil if the slice is empty
func (Object[T]) FirstN ¶ added in v0.21.4
FirstN returns the first "n" elements in the slice, or all elements if "n" is greater than the length of the slice
func (*Object[T]) GetPointer ¶ added in v0.14.0
func (Object[T]) IsLength ¶ added in v0.10.0
IsLength returns TRUE if the slice contains exactly "length" elements
func (Object[T]) Last ¶ added in v0.10.0
func (x Object[T]) Last() T
Last returns the last element in the slice, or nil if the slice is empty
func (Object[T]) NotEmpty ¶ added in v0.16.3
NotEmpty returns TRUE if the slice contains at least one element
type String ¶
type String []string
func (String) At ¶ added in v0.21.5
At returns a bound-safe element from the slice. If the index is out of bounds, then `At` returns the zero value for the slice type
func (String) Contains ¶ added in v0.11.2
Contains returns TRUE if the slice contains the specified value
func (String) ContainsAll ¶ added in v0.14.0
ContainsAll returns TRUE if the slice contains all of the specified values
func (String) ContainsAny ¶ added in v0.14.0
ContainsAny returns TRUE if the slice contains any of the specified values
func (String) Equal ¶ added in v0.11.2
Equal returns TRUE if the slice contains exactly the same elements as the "value" slice
func (String) First ¶ added in v0.10.0
First returns the first element in the slice, or nil if the slice is empty
func (String) FirstN ¶ added in v0.21.5
FirstN returns the first "n" elements in the slice, or all elements if "n" is greater than the length of the slice
func (String) IsLength ¶ added in v0.10.0
IsLength returns TRUE if the slice contains exactly "length" elements
func (String) Join ¶ added in v0.19.1
Join concatenates all elements of the slice into a single string, separated by the specified delimiter
func (String) Last ¶ added in v0.10.0
Last returns the last element in the slice, or nil if the slice is empty
func (String) NotEmpty ¶ added in v0.16.3
NotEmpty returns TRUE if the slice contains at least one element