sliceof

package
v0.18.3 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: Apache-2.0 Imports: 3 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Any

type Any []any

func NewAny added in v0.11.0

func NewAny() Any

func (*Any) Append added in v0.12.0

func (x *Any) Append(values ...any)

func (Any) First added in v0.10.0

func (x Any) First() any

func (Any) GetAny

func (x Any) GetAny(key string) any

func (Any) GetAnyOK added in v0.10.0

func (x Any) GetAnyOK(key string) (any, bool)

func (Any) GetBool

func (x Any) GetBool(key string) bool

func (Any) GetBoolOK added in v0.11.0

func (x Any) GetBoolOK(key string) (bool, bool)

func (Any) GetFloat

func (x Any) GetFloat(key string) float64

func (Any) GetFloatOK added in v0.10.0

func (x Any) GetFloatOK(key string) (float64, bool)

func (Any) GetInt

func (x Any) GetInt(key string) int

func (Any) GetInt64

func (x Any) GetInt64(key string) int64

func (Any) GetInt64OK added in v0.11.0

func (x Any) GetInt64OK(key string) (int64, bool)

func (Any) GetIntOK added in v0.11.0

func (x Any) GetIntOK(key string) (int, bool)

func (*Any) GetPointer added in v0.14.0

func (x *Any) GetPointer(key string) (any, bool)

func (Any) GetString

func (x Any) GetString(key string) string

func (Any) GetStringOK added in v0.11.0

func (x Any) GetStringOK(key string) (string, bool)

func (Any) IsEmpty added in v0.10.0

func (x Any) IsEmpty() bool

func (Any) IsLength added in v0.10.0

func (x Any) IsLength(length int) bool

func (Any) Last added in v0.10.0

func (x Any) Last() any

func (Any) Length added in v0.10.0

func (x Any) Length() int

func (Any) NotEmpty added in v0.16.3

func (x Any) NotEmpty() bool

func (*Any) Remove added in v0.10.0

func (x *Any) Remove(key string) bool

func (Any) Reverse added in v0.10.0

func (x Any) Reverse() Any

func (*Any) SetAny

func (x *Any) SetAny(key string, value any) bool

func (*Any) SetBool

func (x *Any) SetBool(key string, value bool) bool

func (*Any) SetFloat

func (x *Any) SetFloat(key string, value float64) bool

func (*Any) SetInt

func (x *Any) SetInt(key string, value int) bool

func (*Any) SetInt64

func (x *Any) SetInt64(key string, value int64) bool

func (*Any) SetString

func (x *Any) SetString(key string, value string) bool

func (*Any) SetValue added in v0.10.0

func (x *Any) SetValue(value any) error

type Bool

type Bool []bool

func NewBool added in v0.11.0

func NewBool() Bool

func (*Bool) Append added in v0.12.0

func (x *Bool) Append(values ...bool)

func (Bool) Contains added in v0.11.2

func (x Bool) Contains(value bool) bool

func (Bool) ContainsAll added in v0.14.0

func (x Bool) ContainsAll(values ...bool) bool

func (Bool) ContainsAny added in v0.14.0

func (x Bool) ContainsAny(values ...bool) bool

func (Bool) Equal added in v0.11.2

func (x Bool) Equal(value []bool) bool

func (Bool) First added in v0.10.0

func (x Bool) First() bool

func (Bool) GetBool

func (x Bool) GetBool(key string) bool

func (Bool) GetBoolOK added in v0.11.0

func (x Bool) GetBoolOK(key string) (bool, bool)

func (Bool) IsEmpty added in v0.10.0

func (x Bool) IsEmpty() bool

func (Bool) IsLength added in v0.10.0

func (x Bool) IsLength(length int) bool

func (Bool) Last added in v0.10.0

func (x Bool) Last() bool

func (Bool) Length added in v0.10.0

func (x Bool) Length() int

func (Bool) NotEmpty added in v0.16.3

func (x Bool) NotEmpty() bool

func (*Bool) Remove added in v0.10.0

func (s *Bool) Remove(key string) bool

func (Bool) Reverse added in v0.10.0

func (x Bool) Reverse() Bool

func (*Bool) SetBool

func (s *Bool) SetBool(key string, value bool) bool

func (*Bool) SetValue added in v0.10.0

func (s *Bool) SetValue(value any) error

type Float

type Float []float64

func NewFloat added in v0.11.0

func NewFloat() Float

func (*Float) Append added in v0.12.0

func (x *Float) Append(values ...float64)

func (Float) Contains added in v0.11.2

func (x Float) Contains(value float64) bool

func (Float) ContainsAll added in v0.14.0

func (x Float) ContainsAll(values ...float64) bool

func (Float) ContainsAny added in v0.14.0

func (x Float) ContainsAny(values ...float64) bool

func (Float) Equal added in v0.11.2

func (x Float) Equal(value []float64) bool

func (Float) First added in v0.10.0

func (x Float) First() float64

func (Float) GetFloat

func (x Float) GetFloat(key string) float64

func (Float) GetFloatOK added in v0.10.0

func (x Float) GetFloatOK(key string) (float64, bool)

func (Float) IsEmpty added in v0.10.0

func (x Float) IsEmpty() bool

func (Float) IsLength added in v0.10.0

func (x Float) IsLength(length int) bool

func (Float) Last added in v0.10.0

func (x Float) Last() float64

func (Float) Length added in v0.10.0

func (x Float) Length() int

func (Float) NotEmpty added in v0.16.3

func (x Float) NotEmpty() bool

func (*Float) Remove added in v0.10.0

func (s *Float) Remove(key string) bool

func (Float) Reverse added in v0.10.0

func (x Float) Reverse() Float

func (*Float) SetFloat

func (s *Float) SetFloat(key string, value float64) bool

func (*Float) SetValue added in v0.10.0

func (s *Float) SetValue(value any) error

type Int

type Int []int

func NewInt added in v0.11.0

func NewInt() Int

func (*Int) Append added in v0.12.0

func (x *Int) Append(values ...int)

func (Int) Contains added in v0.11.2

func (x Int) Contains(value int) bool

func (Int) ContainsAll added in v0.14.0

func (x Int) ContainsAll(values ...int) bool

func (Int) ContainsAny added in v0.14.0

func (x Int) ContainsAny(values ...int) bool

func (Int) Equal added in v0.11.2

func (x Int) Equal(value []int) bool

func (Int) First added in v0.10.0

func (x Int) First() int

func (Int) GetInt

func (x Int) GetInt(key string) int

func (Int) GetIntOK added in v0.11.0

func (x Int) GetIntOK(key string) (int, bool)

func (Int) IsEmpty added in v0.10.0

func (x Int) IsEmpty() bool

func (Int) IsLength added in v0.10.0

func (x Int) IsLength(length int) bool

func (Int) Last added in v0.10.0

func (x Int) Last() int

func (Int) Length added in v0.10.0

func (x Int) Length() int

func (Int) NotEmpty added in v0.16.3

func (x Int) NotEmpty() bool

func (*Int) Remove added in v0.10.0

func (s *Int) Remove(key string) bool

func (Int) Reverse added in v0.10.0

func (x Int) Reverse() Int

func (*Int) SetInt

func (s *Int) SetInt(key string, value int) bool

func (*Int) SetValue added in v0.10.0

func (s *Int) SetValue(value any) error

type Int64

type Int64 []int64

func NewInt64 added in v0.11.0

func NewInt64() Int64

func (*Int64) Append added in v0.12.0

func (x *Int64) Append(values ...int64)

func (Int64) Contains added in v0.11.2

func (x Int64) Contains(value int64) bool

func (Int64) ContainsAll added in v0.14.0

func (x Int64) ContainsAll(values ...int64) bool

func (Int64) ContainsAny added in v0.14.0

func (x Int64) ContainsAny(values ...int64) bool

func (Int64) Equal added in v0.11.2

func (x Int64) Equal(value []int64) bool

func (Int64) First added in v0.10.0

func (x Int64) First() int64

func (Int64) GetInt64

func (x Int64) GetInt64(key string) int64

func (Int64) GetInt64OK added in v0.11.0

func (x Int64) GetInt64OK(key string) (int64, bool)

func (Int64) IsEmpty added in v0.10.0

func (x Int64) IsEmpty() bool

func (Int64) IsLength added in v0.10.0

func (x Int64) IsLength(length int) bool

func (Int64) Last added in v0.10.0

func (x Int64) Last() int64

func (Int64) Length added in v0.10.0

func (x Int64) Length() int

func (Int64) NotEmpty added in v0.16.3

func (x Int64) NotEmpty() bool

func (*Int64) Remove added in v0.10.0

func (s *Int64) Remove(key string) bool

func (Int64) Reverse added in v0.10.0

func (x Int64) Reverse() Int64

func (*Int64) SetInt64

func (s *Int64) SetInt64(key string, value int64) bool

func (*Int64) SetValue added in v0.10.0

func (s *Int64) SetValue(value any) error

type Object added in v0.10.0

type Object[T any] []T

func NewObject added in v0.11.0

func NewObject[T any]() Object[T]

func (*Object[T]) Append added in v0.12.0

func (x *Object[T]) Append(values ...T)

func (Object[T]) First added in v0.10.0

func (x Object[T]) First() T

func (*Object[T]) GetPointer added in v0.14.0

func (x *Object[T]) GetPointer(name string) (any, bool)

func (Object[T]) IsEmpty added in v0.10.0

func (x Object[T]) IsEmpty() bool

func (Object[T]) IsLength added in v0.10.0

func (x Object[T]) IsLength(length int) bool

func (Object[T]) Last added in v0.10.0

func (x Object[T]) Last() T

func (Object[T]) Length added in v0.10.0

func (x Object[T]) Length() int

func (Object[T]) NotEmpty added in v0.16.3

func (x Object[T]) NotEmpty() bool

func (*Object[T]) Remove added in v0.10.0

func (x *Object[T]) Remove(key string) bool

func (Object[T]) Reverse added in v0.10.0

func (x Object[T]) Reverse() Object[T]

type String

type String []string

func NewString added in v0.11.0

func NewString() String

func (*String) Append added in v0.12.0

func (x *String) Append(values ...string)

func (String) Contains added in v0.11.2

func (x String) Contains(value string) bool

func (String) ContainsAll added in v0.14.0

func (x String) ContainsAll(values ...string) bool

func (String) ContainsAny added in v0.14.0

func (x String) ContainsAny(values ...string) bool

func (String) Equal added in v0.11.2

func (x String) Equal(value []string) bool

func (String) First added in v0.10.0

func (x String) First() string

func (String) GetString

func (x String) GetString(key string) string

func (String) GetStringOK added in v0.11.0

func (x String) GetStringOK(key string) (string, bool)

func (String) IsEmpty added in v0.10.0

func (x String) IsEmpty() bool

func (String) IsLength added in v0.10.0

func (x String) IsLength(length int) bool

func (String) Last added in v0.10.0

func (x String) Last() string

func (String) Length added in v0.10.0

func (x String) Length() int

func (String) NotEmpty added in v0.16.3

func (x String) NotEmpty() bool

func (*String) Remove added in v0.10.0

func (s *String) Remove(key string) bool

func (String) Reverse added in v0.10.0

func (x String) Reverse() String

func (*String) SetString

func (s *String) SetString(key string, value string) bool

func (*String) SetValue added in v0.10.0

func (s *String) SetValue(value any) error

Jump to

Keyboard shortcuts

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