mapof

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2023 License: Apache-2.0 Imports: 4 Imported by: 22

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 (Any) GetAny

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

func (Any) GetBool

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

func (*Any) GetChild

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

func (Any) GetFloat

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

func (Any) GetInt

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

func (Any) GetInt64

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

func (Any) GetString

func (x Any) GetString(key string) (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) SetString

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

type Bool

type Bool map[string]bool

func (Bool) GetBool

func (x Bool) GetBool(key string) (bool, 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 (Float) GetFloatOK added in v0.10.0

func (x Float) GetFloatOK(key string) (float64, 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 (Int) GetInt

func (x Int) GetInt(key string) (int, 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 (Int64) GetInt64

func (x Int64) GetInt64(key string) (int64, 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]) GetObjectOK added in v0.10.0

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

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

func (x *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 (String) GetString

func (x String) GetString(key string) (string, 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