mapof

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 5 Imported by: 20

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Any

type Any map[string]any

func NewAny added in v0.11.0

func NewAny() Any

func (*Any) Append added in v0.16.0

func (x *Any) Append(key string, value any)

Append adds a new value to the provided key. If a value already exists for this key then it will be forced into a slice of values.

func (Any) GetAny

func (x Any) GetAny(key string) any

func (Any) GetAnyOK added in v0.11.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.11.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) GetMap added in v0.11.0

func (m Any) GetMap(name string) Any

GetMap returns a named option as a mapof.Any

func (Any) GetPointer added in v0.14.0

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

func (Any) GetSliceOfFloat added in v0.11.0

func (m Any) GetSliceOfFloat(name string) []float64

GetSliceOfFloat returns a named option as a slice of float64 values

func (Any) GetSliceOfInt added in v0.11.0

func (m Any) GetSliceOfInt(name string) []int

GetSliceOfInt returns a named option as a slice of int values

func (Any) GetSliceOfMap added in v0.11.0

func (m Any) GetSliceOfMap(name string) []Any

GetSliceOfMap returns a named option as a slice of mapof.Any objects.

func (Any) GetSliceOfString added in v0.11.0

func (m Any) GetSliceOfString(name string) []string

GetSliceOfString returns a named option as a slice of strings

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.16.3

func (x Any) IsEmpty() bool

func (Any) IsZeroValue added in v0.12.2

func (m Any) IsZeroValue(name string) bool

func (Any) Keys added in v0.11.0

func (x Any) Keys() []string

func (Any) NotEmpty added in v0.16.3

func (x Any) NotEmpty() bool

func (*Any) Remove added in v0.11.0

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

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) SetObject added in v0.11.0

func (x *Any) SetObject(element schema.Element, path list.List, value any) error

func (*Any) SetString

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

type Bool

type Bool map[string]bool

func NewBool added in v0.11.0

func NewBool() Bool

func (Bool) Equal added in v0.13.0

func (x Bool) Equal(value Bool) 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.16.3

func (x Bool) IsEmpty() bool

func (Bool) Keys added in v0.11.2

func (x Bool) Keys() []string

func (Bool) NotEmpty added in v0.16.3

func (x Bool) NotEmpty() bool

func (*Bool) Remove added in v0.10.0

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

func (*Bool) SetBool

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

type Float

type Float map[string]float64

func NewFloat added in v0.11.0

func NewFloat() Float

func (Float) Equal added in v0.13.0

func (x Float) Equal(value Float) bool

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.16.3

func (x Float) IsEmpty() bool

func (Float) Keys added in v0.11.2

func (x Float) Keys() []string

func (Float) NotEmpty added in v0.16.3

func (x Float) NotEmpty() bool

func (*Float) Remove added in v0.10.0

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

func (*Float) SetFloat

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

type Int

type Int map[string]int

func NewInt added in v0.11.0

func NewInt() Int

func (Int) Equal added in v0.13.0

func (x Int) Equal(value Int) bool

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.16.3

func (x Int) IsEmpty() bool

func (Int) Keys added in v0.11.2

func (x Int) Keys() []string

func (Int) NotEmpty added in v0.16.3

func (x Int) NotEmpty() bool

func (*Int) Remove added in v0.10.0

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

func (*Int) SetInt

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

type Int64

type Int64 map[string]int64

func NewInt64 added in v0.11.0

func NewInt64() Int64

func (Int64) Equal added in v0.13.0

func (x Int64) Equal(value Int64) bool

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.16.3

func (x Int64) IsEmpty() bool

func (Int64) Keys added in v0.11.2

func (x Int64) Keys() []string

func (Int64) NotEmpty added in v0.16.3

func (x Int64) NotEmpty() bool

func (*Int64) Remove added in v0.10.0

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

func (*Int64) SetInt64

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

type Object added in v0.10.0

type Object[T any] map[string]T

func NewObject added in v0.10.0

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

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

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

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

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

func (Object[T]) IsZeroValue added in v0.12.2

func (object Object[T]) IsZeroValue(name string) bool

func (Object[T]) Keys added in v0.11.2

func (x Object[T]) Keys() []string

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 (object *Object[T]) Remove(key string) bool

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

func (object *Object[T]) SetObject(element schema.Element, path list.List, value any) error

type String

type String map[string]string

func NewString added in v0.11.0

func NewString() String

func (String) Equal added in v0.13.0

func (x String) Equal(value String) bool

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.16.3

func (x String) IsEmpty() bool

func (String) Keys added in v0.11.2

func (x String) Keys() []string

func (String) NotEmpty added in v0.16.3

func (x String) NotEmpty() bool

func (*String) Remove added in v0.10.0

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

func (*String) SetString

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

Jump to

Keyboard shortcuts

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