cmap

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2023 License: Apache-2.0 Imports: 4 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIgnoreKey

func GetIgnoreKey(key string) string

GetIgnoreKey of a key

Types

type CustomMap

type CustomMap map[string]interface{}

CustomMap data

func (CustomMap) Clone

func (cm CustomMap) Clone() CustomMap

Clone CustomMap

func (CustomMap) CopyFrom

func (cm CustomMap) CopyFrom(another CustomMap, labels CustomStringMap)

CopyFrom another map

func (CustomMap) Get

func (cm CustomMap) Get(key string) interface{}

Get a value by key

func (CustomMap) GetBool

func (cm CustomMap) GetBool(key string) bool

GetBool a value by key

func (CustomMap) GetFloat64

func (cm CustomMap) GetFloat64(key string) float64

GetFloat64 a value by key

func (CustomMap) GetInt64

func (cm CustomMap) GetInt64(key string) int64

GetInt64 a value by key

func (CustomMap) GetString

func (cm CustomMap) GetString(key string) string

GetString a value by key

func (CustomMap) Init

func (cm CustomMap) Init() CustomMap

Init creates if not available

func (CustomMap) NormalizeKeys

func (cm CustomMap) NormalizeKeys() CustomMap

NormalizeKeys of the map

func (CustomMap) Remove

func (cm CustomMap) Remove(keys ...string)

Remove a key

func (CustomMap) Set

func (cm CustomMap) Set(key string, value interface{}, labels CustomStringMap)

Set a key, value pair

func (CustomMap) ToMap

func (cm CustomMap) ToMap() map[string]interface{}

ToMap returns as map

type CustomStringMap

type CustomStringMap map[string]string

CustomStringMap data

func (CustomStringMap) Clone

func (csm CustomStringMap) Clone() CustomStringMap

Clone CustomMap

func (CustomStringMap) CopyFrom

func (csm CustomStringMap) CopyFrom(another CustomStringMap)

CopyFrom another map

func (CustomStringMap) Get

func (csm CustomStringMap) Get(key string) string

Get a value by key

func (CustomStringMap) GetBool

func (csm CustomStringMap) GetBool(key string) bool

GetBool a value by key

func (CustomStringMap) GetFloat

func (csm CustomStringMap) GetFloat(key string) float64

GetFloat a value by key

func (CustomStringMap) GetIgnoreBool

func (csm CustomStringMap) GetIgnoreBool(key string) bool

GetIgnoreBool a value by ignore key

func (CustomStringMap) GetInt

func (csm CustomStringMap) GetInt(key string) int

GetInt a value by key

func (CustomStringMap) Init

func (csm CustomStringMap) Init() CustomStringMap

Init creates if not available

func (CustomStringMap) IsExists

func (csm CustomStringMap) IsExists(key string) bool

IsExists returns the presence of the key status

func (CustomStringMap) NormalizeKeys

func (csm CustomStringMap) NormalizeKeys() CustomStringMap

NormalizeKeys of the map

func (CustomStringMap) Remove

func (csm CustomStringMap) Remove(keys ...string)

Remove a value by key

func (CustomStringMap) Set

func (csm CustomStringMap) Set(key, value string)

Set a key, value pair

Jump to

Keyboard shortcuts

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